I am working on a program that visits a website, log's that websites login page which takes it to a pdf document that i need to download automatically with a preset path, then move on to the next link.
The only way i can make this function currently is using the axwebbrowser, calling this command:
USER, "asfdffffff.pdf", "asfdddddd.pdf")
Then sending keys with the path and hitting enter....
as the dontpromtuser call does not work. (this has been discussed elsewhere in the forum)
I have also tried the sysem.net.webclient
Dim getfile As System.Net.WebClient
getfile = New System.Net.WebClient
" & MAGIC_NUM & "&case_id=" & CASE_ID & "&doc_num=" & DOC_NUMBER & "&att_num=" & i & "&got_receipt=1", "C:\testthispdf.pdf")
However, the file that is downloaded is currupt and will not open.
If anyone can provide an alternitive method, or possibly something i am doing wrong with either of these two, i would greatly appreciate it.