Only thing I can think of, and it's not really that great a solution, is
to use an HTTP socket to download the file. Then you open it in your
HTMLViewer by loading the downloaded file using LoadPage.
It's messy, it's ugly, but it's the only thing I can think of. If we could
set the HTML for the HTMLViewer to show it would be easier because you
could just pass what the HTTPSocket returns straight to the viewer.
Thanks,
Deane
On Wed, 05 Jul 2006 13:17:03 +1000, Jeff Ayling <[EMAIL PROTECTED]> wrote:
Hi all,
I've been trying to get a file to appear in an HTMLViewer but the
HTMLViewer window remains empty and does not throw an error - if I use
the same url in Safari then the file downloads without trouble.
Then I realized that because the file does not appear in Safari (it
downloads but does not appear in the window) then the server must be
using a "Content-Type: application/force-download" in it's header to
force the file to download. This means that the HTMLViewer can not view
the file but is it being downloaded somewhere? Does anyone know what
happens to a file using HTMLViewer when the server uses a "Content-Type:
application/force-download" to serve the file?
Is there any way of ignoring a "Content-Type: application/force-
download" and allow the file to appear in an HTMLViewer?
This problem also arises when using a MoviePlayer1.movie=OpenURLMovie
(url) when the url is served with a "Content-Type: application/force-
download" in the header from the server.
Am I on track here? Does anyone have any thoughts or comments? Can we
ignore these headers somehow? Would it be handy for the HTMLViewer to
contain a 'HeadersReceived" event so we can see what is being sent by
the server?
Any thoughts or comments would be great.
Cheers
Jeff
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>