Benutzer mit den meisten Antworten
AcroPDDoc -Exception

Frage
-
Guten Abend! Der Quellcode
Acrobat.
AcroPDDoc acro = new Acrobat.AcroPDDoc
();
verursacht folgende Exception: Retrieving the COM class factory for component with CLSID {FF76CB60-2E68-101B-B02E-04021C009402} failed due to the following error: 80040154 Klasse nicht registriert (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
Eigentlich wollte ich nur ein pdf-Dokument laden und speichern, aber nichts ist einfach ;)
Danke für die Hilfe!
Antworten
-
Hallo D.,
die freie Variante (Acrobat Reader) reicht da AFAIK nicht. Dazu benötigst dann IMHO "Adobe Professional" .
Für eine freie Alternative kann ggf. folgendes eine Möglichkeit sein:[pdfsharp - Release: PDFsharp and MigraDoc Foundation 1.31]
http://pdfsharp.codeplex.com/releases/view/37054Hier auch ähnlich:
[Generating Thumbnails for PDF Pages]
http://ryanfarley.com/blog/archive/2006/01/31/15840.aspx
[Generate Thumbnail Images from PDF Documents - CodeProject]
http://www.codeproject.com/KB/GDI-plus/pdfthumbnail.aspx
(->sadly the free reader does not expose the COM interfaces)
Zwar wirst Du den Typ in der Interop Lib (Adobe Acrobat 9.0 Type Library) finden .... also:Guid classGuid = new Guid("{FF76CB60-2E68-101B-B02E-04021C009402}"); Type acroType = Type.GetTypeFromCLSID(classGuid); // ok! MessageBox.Show(acroType != null ? "Typ existiert." : "Typ existiert nicht.");
aber die Instanziierung würde dann (ohne Adobe Professional) nicht klappen, also zum Beispiel:
object instanz = Activator.CreateInstance(acroType); // Exception!
ciao Frank- Als Antwort markiert DulcineaS Sonntag, 20. März 2011 15:26
Alle Antworten
-
Also die Class ID gehört zu Adobe Acrobat (nicht die kostenlose Reader Version). Das die Klasse nicht registriert ist hört sich nach einem nicht installierten Acrobat an (wie gesagt das geht nicht mit der Reader Version sondern die Kommerzielleversion).
Vielleicht hilft auch eine reparatur installation von Adobe Acrobat -
Hallo D.,
die freie Variante (Acrobat Reader) reicht da AFAIK nicht. Dazu benötigst dann IMHO "Adobe Professional" .
Für eine freie Alternative kann ggf. folgendes eine Möglichkeit sein:[pdfsharp - Release: PDFsharp and MigraDoc Foundation 1.31]
http://pdfsharp.codeplex.com/releases/view/37054Hier auch ähnlich:
[Generating Thumbnails for PDF Pages]
http://ryanfarley.com/blog/archive/2006/01/31/15840.aspx
[Generate Thumbnail Images from PDF Documents - CodeProject]
http://www.codeproject.com/KB/GDI-plus/pdfthumbnail.aspx
(->sadly the free reader does not expose the COM interfaces)
Zwar wirst Du den Typ in der Interop Lib (Adobe Acrobat 9.0 Type Library) finden .... also:Guid classGuid = new Guid("{FF76CB60-2E68-101B-B02E-04021C009402}"); Type acroType = Type.GetTypeFromCLSID(classGuid); // ok! MessageBox.Show(acroType != null ? "Typ existiert." : "Typ existiert nicht.");
aber die Instanziierung würde dann (ohne Adobe Professional) nicht klappen, also zum Beispiel:
object instanz = Activator.CreateInstance(acroType); // Exception!
ciao Frank- Als Antwort markiert DulcineaS Sonntag, 20. März 2011 15:26