Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Open an Adobe Acrobat PDF file
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00557038
Message ID:
00562182
Views:
20
>Jose
>
>Another kind of round about (but easy to code and control method) is to put the MS Internet Explorer ActiveX on a form, and set it's INIT code to something like
>this (the oleWB is the name I gave to the OLE Control)
>
>THISFORM.oleWB.Navigate('file://C:/SOURCE/VFP6/POSTMGR/VER32062/i-9.pdf')
>ThisForm.oleWB.setfocus() && Hides unwanted scrollbar
>Thisform.oleWB.Setfocus() && Some object to get focus from browser
>
>Of course, you can substitute the path/file of the first line of code with anything you want to view/print.
>
>Also, you do need Adobe Acrobat Reader installed, but not the full Adobe Acrobat.
>
>By the way, this works for almost any file types - animated GIFs, etc.
>
>Hope this helps.

Very good idea Bill. I´ll try. One question, I didn´t understand the lines:

ThisForm.oleWB.setfocus() && Hides unwanted scrollbar
Thisform.oleWB.Setfocus() && Some object to get focus from browser

I think that you forgot something...

Regards,
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Previous
Reply
Map
View

Click here to load this message in the networking platform