Results 1 to 3 of 3

Thread: trying to view PDF files

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2004
    Posts
    59

    trying to view PDF files

    Hello, I am trying to view pdf files. I read over the adobe SDK documentation and this is what I came up with:

    Code:
        Public Function PdfView(ByVal filePath As String)
    
            Dim AcroApp As Acrobat.CAcroApp
            Dim PDDoc As Acrobat.CAcroPDDoc
            Dim avDoc As Acrobat.CAcroAVDoc
    
            AcroApp = CreateObject("AcroExch.App")
            PDDoc = CreateObject("AcroExch.PDDoc")
    
            If PDDoc.Open(filePath) Then
                AcroApp.Show()
                avDoc = PDDoc.OpenAVDoc("")
            Else
                MsgBox("Unable to open the PDF-file", vbInformation)
            End If
    
            avDoc = Nothing
            PDDoc = Nothing
            AcroApp = Nothing
    
        End Function
    The problem is that it loads up Adobe Acrobat, but does not show me the pdf file. For some reason it loads it acrobat with an empty screen. Not sure why. Any help?

  2. #2

  3. #3

    Thread Starter
    Member
    Join Date
    Aug 2004
    Posts
    59
    Thanks for the help, it worked good

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width