R
Rover
Hi,
I am wondering if anyone can help.
I have a very simple ATL7 SDI program which uses CAxWindow to host IE to
allow me to display PDF file using Acrobat Reader 6 using the file:///
protocol.
The program has a menu containing a few items each allowing me to use
IWebBrowser2::Navigate2() to load a different PDF file.
In AcroRd32 ver 6, when I change PDF, it displays a dialog box (by Acrobat
Reader) saying "One or more pdf documents are open in the web browser....."
and offers me a button to exit or cancel. If I hit cancel, it will load a
different one without any prompting until I kill off the AcroRd32.exe
process.
However, if I bring up IE and type in the various PDF in the address bar
using the file protocol, no such dialog box is shown by IE.
I believed my hosting of IE is as closed to the iexplore.exe. Before I load
up the IE, I also make sure AcroRd32.exe is not loaded and that I do a fresh
restart.
Can someone gives me a hint what is wrong? What I have missed? How does IE
do it to avoid this dialog box? Is there a good site for advice on hosting
IE and Acrobat Reader.
It seems like I have to close the current PDF document before navigating to
another one. Can someone advise me how to do this using IWebBrowser2
interface?
Thanks for any help you can offer.
RoveR
I am wondering if anyone can help.
I have a very simple ATL7 SDI program which uses CAxWindow to host IE to
allow me to display PDF file using Acrobat Reader 6 using the file:///
protocol.
The program has a menu containing a few items each allowing me to use
IWebBrowser2::Navigate2() to load a different PDF file.
In AcroRd32 ver 6, when I change PDF, it displays a dialog box (by Acrobat
Reader) saying "One or more pdf documents are open in the web browser....."
and offers me a button to exit or cancel. If I hit cancel, it will load a
different one without any prompting until I kill off the AcroRd32.exe
process.
However, if I bring up IE and type in the various PDF in the address bar
using the file protocol, no such dialog box is shown by IE.
I believed my hosting of IE is as closed to the iexplore.exe. Before I load
up the IE, I also make sure AcroRd32.exe is not loaded and that I do a fresh
restart.
Can someone gives me a hint what is wrong? What I have missed? How does IE
do it to avoid this dialog box? Is there a good site for advice on hosting
IE and Acrobat Reader.
It seems like I have to close the current PDF document before navigating to
another one. Can someone advise me how to do this using IWebBrowser2
interface?
Thanks for any help you can offer.
RoveR