Hyperlink

Mc3762
Member Posts: 26
I Have made a hyperlink from Navision to run an ASP page, which does some file-handling.
But the user doesn't need to see Internet Explorer. That is, is it possible to run the ASP page hidden from the user. So that when the ASP page has completed it shuts down Internet Explorer.
But the user doesn't need to see Internet Explorer. That is, is it possible to run the ASP page hidden from the user. So that when the ASP page has completed it shuts down Internet Explorer.
0
Comments
-
You can probably use an automation variable to accomplish this. For example, the automation server Internet Explorer has the property VISIBLE. Try setting this property to FALSE.0
-
I have tried this code where IE is the automation variable
Create(IE);
Hyperlink('www.xxxxxx.com');
IE.Visible := False;
IE.Quit;
But it doesn't do anything, and I need to close the Internet explorer.0 -
The code in your second line is the problem here. You have to use the instance of the automation variable when you connect. This will work:
IE.Navigate('www.xxxxxx.com');
Closing the connection will work with the Quit method. Hope this helps.0 -
Thanks that works....
But, if I have an IE open before I run the code, it uses that instance of the IE and closes it.
Is it possible to open a new IE instead, or to check if it was an existing IE it used, so that I can use the Back method instead...0 -
For the first line, use:
CREATE(IE, TRUE);
This will create a new instance of IE instead of trying to use the existing instance.0 -
Thanks
A new problem came up.
If Explorer to the filesystem is open. It doesn't work. when I run the Create(IE, True); it takes over the Explorer instead of creating a new Internet Explorer.
How can I force it to open a new Internet Explorer.0 -
UPS.
I debugged it, and have found out that teh problem is the Quit() statement.
It starts up a new IExplorer, navigates. But as soon as i put IE.Quit(); after IE.Navigate('www.xxxx.com/test.asp'); It doesn't run the ASP code.
It just quits IE, to early...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