P
PISINC
I am having a problem creating an instance of the Acrobat
application COM component ("AcroExch.App") with C#.
The component "AcroExch.App" lives in the Acrobat
executable, and you can't add "Acrobat.exe" directly as a
reference.
In VB 6.0, you use the CreateObject function with
the "AcroExch.App" ProgID to instance the COM object.
Adobe gives you a type libary called "acrobat.tlb" which
contains an interface called "Acrobat.CAcroApp" ( so,
really, it should be named "IAcroApp"
) that you bind
the object to.
For example, in VB (after adding the reference
to "acrobat.tlb"):
Dim AcroApp As Acrobat.CAcroApp
Set AcroApp = CreateObject("AcroExch.App")
Is there anything like this in C#? Can I not use ProgIDs
to create components anymore?
"CAcroApp" is just an interface and not creatable, and I
cannot reference the "Acrobat.exe" to get at
the "AcroExch.App" object.
application COM component ("AcroExch.App") with C#.
The component "AcroExch.App" lives in the Acrobat
executable, and you can't add "Acrobat.exe" directly as a
reference.
In VB 6.0, you use the CreateObject function with
the "AcroExch.App" ProgID to instance the COM object.
Adobe gives you a type libary called "acrobat.tlb" which
contains an interface called "Acrobat.CAcroApp" ( so,
really, it should be named "IAcroApp"

the object to.
For example, in VB (after adding the reference
to "acrobat.tlb"):
Dim AcroApp As Acrobat.CAcroApp
Set AcroApp = CreateObject("AcroExch.App")
Is there anything like this in C#? Can I not use ProgIDs
to create components anymore?
"CAcroApp" is just an interface and not creatable, and I
cannot reference the "Acrobat.exe" to get at
the "AcroExch.App" object.