Re: Download progress? PDF file



"Mike J" <notvalid@xxxxxxxxx> wrote in message
news:uXavUrx%23FHA.2520@xxxxxxxxxxxxxxxxxxxx
> These were the events I got in reversed order.
> After the last event, is the real loading of PDF file. (in IE, it
> will show on Status Bar or Downloaed ( ...): ). But in the
> IWebBrowser, nothing updated

I see. To be honest, I don't know how IE gets the progress of a PDF
document. Acrobat Reader appears to handle the download on its own, not
through IE. I have a few hypotheses, but I have not tested any of them.

1. Acrobat Reader performs the download via IE's IBindHost interface. In
this case, IE has a chance to insert its own listener (see
IBindStatusCallback) in the chain.
2. Acrobat Reader notifies the host of progress using
IOleCommandTarget::Exec with OLECMDID_SETPROGRESSPOS,
OLECMDID_SETPROGRESSMAX and OLECMDID_SETPROGRESSTEXT commands.
3. IE has a special knowledge of Acrobat Reader and obtains progress
indication using some AR-specific interfaces.

In case of #1, I seem to recall that WebBrowser control forwards
requests for IBindHost to its container, so you have a chance to
implement it.
In case of #2, I don't know whether WB forwards those commands or not.
If not, I don't immediately see how to obtain them.
I have no clue about #3 really.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: Opening with Preview
    ... > I am currently using an iBook G4 and normally when I view a pdf file ... Here are some instructions for changing from Preview to Acrobat Reader ... Part way down the left side of that information box is an arrow next ... That section of the info box opens up to reveal a horizontal window ...
    (comp.sys.mac.apps)
  • RE: FineReader
    ... Open the .pdf file in Adobe Acrobat Reader. ... On the Edit menu, click Select All. ... To copy graphics, follow these steps: ...
    (microsoft.public.word.docmanagement)
  • Re: cant find a way to display and print pdf through python.
    ... will open a pdf file from a shell command line. ... Acrobat Reader is also listed on my system. ... ubuntu linux. ...
    (comp.lang.python)
  • Re: IE6 not opening PDF files
    ... I have acrobat reader 6.0.3 installed and it works fine ... >> have to download and open the local .pdf file. ... configured to display the PDF within the browser window? ... Or perhaps you used some utility that disabled its BHO. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Cannot associate PDF files with Acrobat Reader
    ... However, if we save the attached pdf file to the desktop, it opens ... Microsoft MVP [Windows XP Shell/User] ... I right-clicked on the file and chose "Open With", but Acrobat Reader was ...
    (microsoft.public.windowsxp.help_and_support)