Hi,
I tried to print the documents using acrobat namespace & some errors are occurring during debugging.. Input for my program is document url.
Method 1:- DLL: Reference AcroPDF.dll from COM
AcroPDFLib.AcroPDF doc = new AcroPDFLib.AcroPDF();
doc.LoadFile(fileUri);
doc.printAll();
Method 2:- DLL: Reference AcroRd32.dll from COM
Acrobat.AcroAVDoc doc = new Acrobat.AcroAVDoc();
doc.Open(filepath, string.Empty);
Acrobat.AcroPDDoc di = (Acrobat.AcroPDDoc)doc.GetPDDoc();
int pageCount = di.GetNumPages();
doc.PrintPagesSilent(0, pageCount - 1, 3, 1, 1);
doc.Close(1);
Retrieving the COM class factory for component with CLSID {CA8A9780-280D-11CF-A24D-444553540000} failed due to the following error: 80040154.
Iâm getting the above error. I tried to register the dll as mentioned in the link
http://social.msdn.microsoft.com/For...b-d395a9024d06 & got the error
Module acrord32.dll failed to load
Please correct my error in the code.