Using WebBrowser to View/Copy/File PDF (VB6)

select a pdf for viewing via common dialog
use shell copy to make a copy of the pdf in another folder
open the the pdf (via navigate (...path...)
....user wants to file this copy
navigate ("about:blank")
...hide the control
name copy as new copy

several times the operation will complete without error, but, then
the readystate of the control never changes from 3 (interactive) to 4 (complete)
therefore, the name command fails with error 75 path/access error
clear the error and retry the name copy as new copy works on XP --- not on vista

Question: how can I get the readystate to change to Complete?
absokAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

absokAuthor Commented:
added sleep to wait 100 ms for readystate to 4 (complete)
name (path2copy) as (path2newcopy) still fails
resume on err.number = 75 will case the name command to work
so, I guess the readystate was from the navigate ("about:blank")
0
absokAuthor Commented:
Okay - I changed to program to show the original document selected by the user.
Navigate to that location after making a copy in a local folder.
If the user wants for 'file' the document:
navigate ("") - releasing the original document and file the copy.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.