Problem solve Get help with specific problems with your technologies, process and projects.

Come in PDF!

I am trying to automatically open a pdf file in Lotus Notes. I used CreateObject("AcroRd32.application") and I receive the error message, "Cannot create automation object." AcroRd32.exe comes from the Tool Options. However, I did notice in the registry that the file is AcroExch.App. I'm spinning my wheels at this point! Can you help?
I have seen the AcroExch used rather than the AcroRd32. The example below comes from the Experts Exchange Web site. The URL passed is the full URL to the document to be opened, either a HTTP, URL or filepath.
Sub PdfCheck(ByVal URL 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(URL) Then
            avDoc = PDDoc.OpenAVDoc("")
            MsgBox("Unable to open the 
PDF-file", vbInformation)
        End If

        avDoc = Nothing
        PDDoc = Nothing
        AcroApp = Nothing
    End Sub

Do you have comments on this Ask the Expert question and response? Let us know.

Dig Deeper on Lotus Notes Domino Application Development

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...