DisplayFromURL error
DisplayFromURL error
Hi,
Using the OCX (version 5.12.0.4) with IE7, the method DisplayFromURL doesn't work in many stations.
Checking the problem with HTTP Analizer, I see that the method request doesn't send any headers or session cookie.
Do you have any idea how to fix it?
Regards,
Sami
Using the OCX (version 5.12.0.4) with IE7, the method DisplayFromURL doesn't work in many stations.
Checking the problem with HTTP Analizer, I see that the method request doesn't send any headers or session cookie.
Do you have any idea how to fix it?
Regards,
Sami
Re: DisplayFromURL error
Hi Loïc,
I'd like to receive an answer about this issue, even if you don't have an idea how to solve it.
It's urgent for me.
Regards,
Sami
I'd like to receive an answer about this issue, even if you don't have an idea how to solve it.
It's urgent for me.
Regards,
Sami
Re: DisplayFromURL error
Hi Sami,
I have no idea on what can be the cause. If you provide a code snippet that we can use, I will be able to trace the problem.
But without more information than "the method DisplayFromURL doesn't work in many stations." I can't do anything to help.
Kind regards,
Loïc
I have no idea on what can be the cause. If you provide a code snippet that we can use, I will be able to trace the problem.
But without more information than "the method DisplayFromURL doesn't work in many stations." I can't do anything to help.
Kind regards,
Loïc
Re: DisplayFromURL error
Hi,
The code is like this:
The url result is like: "http://dev/myWebsite/Scan.aspx?Action=D ... 5478552114"
The request doesn't send any header or cookie. The response has 0 size.
If I put the same URL in a iframe, the download is perfect (the request is good, with headers and cookies).
The question is why the request of DisplayFromURL on IE7 is send without headers.
If you don't have an answer (what is acceptable ), what about a workaround? Can I download the PDF using XMLHTTP and load the body into GDViewer as string? Do you have any other idea?
Thanks,
Sami
The code is like this:
Code: Select all
port=80
MyGdViewer.LockControl = true;
MyGdViewer.DisplayFromURL(location.hostname, location.pathname + "?Action=DownloadTempFile&Nada=" + new Date().getTime(), port);
MyGdViewer.LockControl = false;
The request doesn't send any header or cookie. The response has 0 size.
If I put the same URL in a iframe, the download is perfect (the request is good, with headers and cookies).
The question is why the request of DisplayFromURL on IE7 is send without headers.
If you don't have an answer (what is acceptable ), what about a workaround? Can I download the PDF using XMLHTTP and load the body into GDViewer as string? Do you have any other idea?
Thanks,
Sami
Re: DisplayFromURL error
Hi,
What is the returned value of DisplayFromURL ?
Kind regards,
Loïc
What is the returned value of DisplayFromURL ?
THe DisplayFromURL does not take care of the browser. It works in the exact same way from any web-browser or winform application.The question is why the request of DisplayFromURL on IE7 is send without headers.
Kind regards,
Loïc
Who is online
Users browsing this forum: No registered users and 0 guests