Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 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:22 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.
 
Old June 21st, 2013, 10:00 AM
Registered User
 
Join Date: Jun 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# silent print liberary for .net

Hy
I would help you but I got the same error and could not fix it so i finally found pdfprinting.net i works fine but i dose not support editing pdf and it is not free but if you need a pdf library it is worth it. :)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Merge PDF Documents Gyto ASP.NET 2.0 Basics 3 August 19th, 2013 02:33 AM
View PDF document without Acrobat kirti_goyal ASP.NET 2.0 Professional 5 May 11th, 2007 08:28 AM
bookmark a PDF file with Acrobat Reader/OpenOffice crmpicco Need help with your homework? 0 February 27th, 2006 01:13 PM
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.