LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Opening and saving from web site pdf file

I found a site where you can download many pdf file. In order to automatize the process i would create a vi using activex.
i generate some url  like this "http://remotesite/folder/file1.pdf" and i want the vi open the site, download the page an save the file1.pdf in a desired folder. In this forum there are many examples that solve only  half of my problem, in fact they load in a browser the pdf file opening Acrobat reader but i do not know how to save the file.
Thank you
lelluzo
0 Kudos
Message 1 of 3
(2,894 Views)
Why do you want to do this with ActiveX?

Try the WinInet: http://www.mooregoodideas.com/goodLabViewStuff.htm

Simply use WinInet Easy Get Url, with a path to the file, and store the data as binary file. I used this a lot for the axact thing to are trying to do. Put the VI in a for loop, and try to automatically build a string that forms the paths to the files. Sometimes, I get the source HTML from a download page, and edit the HTML so I get a multiline string. This forms the input for the loop, and there you go. All your files nicelly on disk. Note that some of these sites will block after a few downloads, to prevent this sort of things.

Regards,

Wiebe.
0 Kudos
Message 2 of 3
(2,877 Views)
I will use activex because using datasocket i have no answer from that site
Now i tray what you suggest me
tank you
lelluzo
0 Kudos
Message 3 of 3
(2,869 Views)