Wrox Home  
Search P2P Archive for: Go

  Return to Index  

application_development thread: Simple Code to access Adobe form from VB APP


Message #1 by "derek coster" <derek.coster@f...> on Mon, 14 Jan 2002 14:13:50

I want to access some adobe pdf forms from within my app. I have added the 

adobe activeX reference which gives me access to its method and properties 

and events but just need to establish what code is necessary to open these 

documents.



I will only be opening exiting documents and viewing them (they are user 

feedback forms) before closing them. There is no need to edit them etc.



I include the code which I have been playing around with but which isn't 

correct.



Doesn anybody have any experience of using adobe in this way??



Private Sub cmdOpen_Click()



'open existing pdf document



On Error GoTo ERR_pdferror



    Dim strEnquiryLetter As String

    Dim objScan As New AdobePDFMakerX.Word

    

strEnquiryLetter = "C:\pdftest\retrain-it-client.pdf"



    Set objScan = CreateObject("AdobePDFMakerX.word")

    objScan.LaunchDocument("strEnquiryLetter")

          

    Exit Sub

    

ERR_pdferror:



MsgBox "error opening document..", vbInformation



End Sub


  Return to Index