Link to home
Start Free TrialLog in
Avatar of RafaelAW
RafaelAWFlag for Brazil

asked on

IE Automation - PDF interaction problem

Hi specialists,

I'm developing a simple solution that needs to access some web pages (I'm using Webbrowser/VB.NET). SOme of this resources has PDFs inside IFRAMEs. I need to save this PDFs.

How can my program interact with the PDF Viewer in the Webbrowser ? is there a 'command' to save the PDF file to a specified directory ?

I tried some ways (I think I'm wrong in some of it):
- to search for a method to interact with the IFRAME (I didnt find anything);
- interact with the windows process (AcroBroker) trying to use ShellExecute to interact (I think it is not possible);
- try to find the temporary file downloaded (I'm trying to implement it now).
- I tried to use a webclient to download and save the file directly but the server application has some security implementations that not permit.

Any idea ?

Thanks !
ASKER CERTIFIED SOLUTION
Avatar of puppydogbuddy
puppydogbuddy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of RafaelAW

ASKER

Hi,

Thanks for the link.

I checked the option to open as a new window, then I'm trying to capture the file in the Temporary Internet Files directory.

This option appears to be the only way to save the PDF file.

Thanks
Avatar of puppydogbuddy
puppydogbuddy

Here are more details for configuring the web browser to do what you want.   Although earlier versions of accrobat and IE are discussed the configuration process should not have changed much.
       http://kb2.adobe.com/cps/331/331025.html


Hope this helps.
Avatar of Jeff Perkins
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.