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
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