ASP.NET - Creating an AcroExch.PDDOC object returns an Active X error
Posted on 2004-08-11
Hi folks -
I'm a pretty basic ASP.NET programmer and use a text editor to create applications, not Visual Studio.NET.
I'm trying to create an AcroExch.PDDOC object and am getting the "Cannot Create ActiveX Component" error.
I've got Acrobat 5.0 installed, as well as the 5.0 SDK. I used "Tblimp.exe" to create "Acrobat.dll" from the "Acrobat.tlb" in the SDK. I moved the "Acrobat.dll" to the "bin" directory of the ASP.NET application.
<%@ Import Namespace="System.IO" %>
<%@ Import Namespace="ACROBAT" %>
<%@ Assembly Name="ACROBAT" %>
<%@ Page Language="VB" Debug="true" %>
Dim pdfDoc As Object
pdfDoc = CreateObject("AcroExch.PDDoc")
Any advice is much appreciated!