M
Marius Horak
This is the code to navigate
object flags = (object)0;
object targetFrameName = (object)"";
object postData = (object)"";
object headers = (object)"";
string url = "http://000.000.000.000/RemoteAPI.dll/Get?ID=100";
webControl.Navigate(url, ref flags, ref targetFrameName, ref postData,
ref headers);
There is NavigateComplete2 method assigned to NavigateComplete2 event
that makes the webControl visible.
The RemoteAPI.dll should find a PDF file and axWebBrowser will open it.
Works fine. But when a PDF file does not exists the RemoteAPI.dll
returns text - "Error in Get. The system cannot find the file
specified". This is the full text as taken from View-Source. No HTML
tags. After that the next attempt to navigate to an existing PDF files
does not work. The application hangs and it never gets to
NavigateComplete2. When NavigateComplete2 event is removed all works
fine (but now I have to keep webControl visible all the time and cannot
handle the response).
I think something goes wrong due to the way I define/pass parameters to
Navigate.
I recreated the same process in Delphi 5 and there is no problem at all.
MH
object flags = (object)0;
object targetFrameName = (object)"";
object postData = (object)"";
object headers = (object)"";
string url = "http://000.000.000.000/RemoteAPI.dll/Get?ID=100";
webControl.Navigate(url, ref flags, ref targetFrameName, ref postData,
ref headers);
There is NavigateComplete2 method assigned to NavigateComplete2 event
that makes the webControl visible.
The RemoteAPI.dll should find a PDF file and axWebBrowser will open it.
Works fine. But when a PDF file does not exists the RemoteAPI.dll
returns text - "Error in Get. The system cannot find the file
specified". This is the full text as taken from View-Source. No HTML
tags. After that the next attempt to navigate to an existing PDF files
does not work. The application hangs and it never gets to
NavigateComplete2. When NavigateComplete2 event is removed all works
fine (but now I have to keep webControl visible all the time and cannot
handle the response).
I think something goes wrong due to the way I define/pass parameters to
Navigate.
I recreated the same process in Delphi 5 and there is no problem at all.
MH