Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
View PDF from with VFP
Message
 
To
21/01/2005 10:55:49
Barbara Hill
B.L. Hill Applications Limited
Halifax, Nova Scotia, Canada
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows NT
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00979286
Message ID:
00979314
Views:
49
You can do it yourself following the idea below, and adding controls as needed.
frm = CreateObject('form1', fullpath_filename)
frm.show()
Read Events

*------------------------------------------
* Control installed by Acrobat Reader 6.0
DEFINE CLASS form1 AS form
  
    Top = 5
    Left = 5
    Height = 445
    Width = 565
    Caption = "PDF Viewer ActiveX"
    Name = "Form1"
    WindowType=0  

    ADD OBJECT acrobatviewer AS olecontrol WITH ;
        Oleclass = "PDF.PdfCtrl.6", ;
        Name = "AcrobatViewer"

   
PROCEDURE Init
	LPARAMETERS pFile
	WITH this.AcrobatViewer
	     .Top = 0
             .Left = 0
       	     .Height = this.Height/2
             .Width = this.Width/2
	     .loadfile(pFile)
    	ENDWITH
endproc

    
PROCEDURE Destroy
      Clear Events
ENDPROC

ENDDEFINE
>Hi All,
>
>Does anyone know if there is a product/control that will allow PDF files to be viewed from within VFP? I have a client that would like to preview the PDF files in VFP (sort of a thumbnail) and then choose the one to open.
>
>Thanks
>
>Barb
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform