Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PDF does not display inside web control
Message
From
19/02/2008 17:59:20
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
01293868
Message ID:
01294053
Views:
26
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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform