Adobe Acrobat won't close

G

Guest

I have the following code in VB.Net 2003 to open up a PDF document using
Adobe Acrobat 5.0. It opens up and closes pdf document and Acrobat
application fine at the first time but the second time Acrobat's File->Exit
or clicking on X to close Acrobat won't close application. The document is
able to close and I have to use Task Manager to close application.
Any suggestions?

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(MyPdfFile.pdf) Then
'PDDoc.Magnification(200)
AcroApp.Show()
AcroApp.Maximize(100)
avDoc = PDDoc.OpenAVDoc("")
Else
MsgBox("Unable to open the PDF file", vbInformation)
End If

avDoc = Nothing
PDDoc = Nothing
AcroApp = Nothing
 
T

teresa pellegrino

Did you receive a reply as I would be interested in the response.

thanks
tp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top