Reading information on a website

tvandongen
Member Posts: 78
I've made a small report to check if the VAT number is correct, using an EU database:
(Report --> On after get record of the relation tabel)
LinkTxt:='http://europa.eu.int/comm/taxation_customs/vies/cgi-bin/viesquer?MS='+
DELCHR(COPYSTR(Relatie."BTW-nummer",1,2))+'&VAT='+
DELCHR(COPYSTR(Relatie."BTW-nummer",3))+'&Lang=NL';
HYPERLINK(LinkTxt);
Although this solution is working, you can only run it one at a time, because the information has to be read on the screen.
Does anybody know a way to save the resulting website, so I can convert the answer from a saved to file back to Navision Financials 2.60 ?
(Report --> On after get record of the relation tabel)
LinkTxt:='http://europa.eu.int/comm/taxation_customs/vies/cgi-bin/viesquer?MS='+
DELCHR(COPYSTR(Relatie."BTW-nummer",1,2))+'&VAT='+
DELCHR(COPYSTR(Relatie."BTW-nummer",3))+'&Lang=NL';
HYPERLINK(LinkTxt);
Although this solution is working, you can only run it one at a time, because the information has to be read on the screen.
Does anybody know a way to save the resulting website, so I can convert the answer from a saved to file back to Navision Financials 2.60 ?
0
Comments
-
I know how to do this in a ASP-page; then you use eg. the Microsoft.XMLHTTP or AspTear component to grab the data into a string. Then you can parse this string to extract the info you need.
Here is an example (from http://www.4guysfromrolla.com/webtech/071199-1.shtml):'AspTear constants Const Request_POST = 1 Const Request_GET = 2 Set objTear = CreateObject("SOFTWING.ASPtear") Response.ContentType = "text/html" On Error Resume Next Dim strRetval ' URL, action, payload, username, password strRetval = objTear.Retrieve("http://www.stockquotes.com/msft.asp", Request_GET, "", "", "") If Err.Number <> 0 Then Response.Write "<b>" If Err.Number >= 400 Then Response.Write "Server returned error: " & Err.Number Else Response.Write "Component/WinInet error: " & Err.Description End If Response.Write "</b>" Response.End End If Response.Write "Microsoft currently selling at " & FormatCurrency(strRetval, 2)
I have no idea if you can call these components directly from Navision. If not, you need to write a OCX that calls the component, and you call that OCX from Navision.No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Luc,
Thanks for your reply, but I've found an easier solution by opening the site in Excel in stead of the internet explorer.
It is now working fine.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions