Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating an Adobe Acrobat Object

Status
Not open for further replies.

erixire

Technical User
Jun 4, 2002
72
CA
Hi,

I am trying to create an Adobe Acrobat Reader object to open a PDF file and show it to the user. But I always get an empty variable (= NOTHING). Here is how I try to declare my variables:

Exemple 1:
Dim myAcroApp As Acrobat.CAcroApp
Dim acroExchAVDoc As Acrobat.CAcroAVDoc
Dim acroExchPDDoc As Acrobat.CAcroPDDoc

myAcroApp = CreateObject("AcroExch.App")
acroExchAVDoc = CreateObject("AcroExch.AVDoc")
...
'If I break the program here and I look at my variables,
'They have the value of "NOTHING"

Exemple 2:
Dim myAcroApp As Object
Dim acroExchAVDoc As Object
Dim acroExchPDDoc As Object

myAcroApp = CreateObject("AcroExch.App")
acroExchAVDoc = CreateObject("AcroExch.AVDoc")
...
'Here again, if I break the program here and I look at my
'variables, they have the value of "NOTHING"

As you can see, I tried some code that I have found on the internet for Visual Basic 6, but it doesn't seems to work for me in .NET. I have added the library of Adobe in the "...add Reference" section of .NET. I have the SDK of Adobe installed on my machine. Does anyone knows what I am doing wrong?

Thanks
 

try this !!!

System.Diagnostics.Process.Start("c:\DVS.pdf")

Email: pankajmsm@yahoo.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top