Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2008 > C# 2008 aka C# 3.0
|
C# 2008 aka C# 3.0 Discuss the Visual C# 2008 (aka C# 3.0) language
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2008 aka C# 3.0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2011, 02:27 AM
Registered User
 
Join Date: Aug 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default PDF documents printing using Acrobat dll

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
PDF documents printing using Acrobat dll anandan002 C# 1 June 21st, 2013 10:00 AM
PDF documents printing using Acrobat dll anandan002 C# 4.0 aka C# 2010 General Discussion 0 October 6th, 2011 02:26 AM
View PDF document without Acrobat kirti_goyal ASP.NET 2.0 Professional 5 May 11th, 2007 08:28 AM
AcroPDF.PDF.1 object for detecting Acrobat Reader crmpicco Javascript How-To 0 December 1st, 2005 08:26 AM
Opening a series of acrobat documents lshamba Classic ASP Basics 0 March 28th, 2005 12:34 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.