Re: Download progress? PDF file
- From: "Igor Tandetnik" <itandetnik@xxxxxxxx>
- Date: Wed, 7 Dec 2005 08:11:38 -0500
"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
.
- Follow-Ups:
- Re: Download progress? PDF file
- From: Mike J
- Re: Download progress? PDF file
- From: Mike J
- Re: Download progress? PDF file
- References:
- Download progress? PDF file
- From: Mike J
- Re: Download progress? PDF file
- From: Igor Tandetnik
- Re: Download progress? PDF file
- From: Mike J
- Download progress? PDF file
- Prev by Date: Detecting document changes in WebBrowser control
- Next by Date: Re: Download progress? PDF file
- Previous by thread: Re: Download progress? PDF file
- Next by thread: Re: Download progress? PDF file
- Index(es):
Relevant Pages
|