C# pdf printing with using Acrobat


  •  Acrobat.AcroAVDoc doc = new AcroAVDoc();
                doc.Open(filepath, string.Empty);
                AcroPDDoc di = (AcroPDDoc)doc.GetPDDoc();
                int pageCount = di.GetNumPages();
                doc.PrintPagesSilent(0, pageCount - 1, 3, 1, 1);
    I did the following code but I got an error when I run the program.

    Error was:Retrieving the COM class factory for component with CLSID {72498821-3203-101B-B02E-04021C009402} failed due to the following error: 80040154.

    Please help me
    Tuesday, June 07, 2011 11:09 AM


  • Hi Arun,

    I would suggest you should register your Acrobat DLL with the help of regsvr32. this will solve the issue



    Source Code-World

    • Proposed as answer by Aspen VJ Thursday, June 09, 2011 3:14 AM
    • Marked as answer by Aspen VJ Thursday, June 16, 2011 1:49 AM
    Tuesday, June 07, 2011 11:37 AM

All replies