You've solved my original issue, exposing a second one. :)
I get two browser scripting error messages if the path to the PDF contains spaces. Ex: file:///H:/Jim/My%20Documents/agreport.pdf
1st error is:
Line 2
Character 1
Code 0
URL: (as above)
'Invalid character'
the second one says 'Object expected'
Then no PDF displays. If the path contains no spaces, then it displays inline as expected.
Any work around for this?
>Launch Adobe Acrobat, go to Preferences, Internet and check 'Display PDF in Browser'.
>
>>I am just getting started using the web browser control to view PDF files in a VFP form. I found an answer from Sergey describing how to do this, and it is working well on my test form I made, with an annoying exception.
>>
>>On my own development machine, the PDF does not appear within the form control. The PDF opens in a separate Adobe viewer window. I have IE7 and Adobe viewer version 8 on my machine. On another machine I tested this on has IE 6 and a different pdf viewer (Foxit, a free viewer). This configuration places the document inside the form control, which is the behavior I desired.
>>
>>Any input on this would be great,
>>
>>Thanks,
Jim Newsom
IT Director, ICG Inc.