Professional Web Applications Themes

Acrobat Automation causes a COM error - Adobe Acrobat SDK

Hi, When I run the following C# code, I am getting a COM exception "Method 'Close' of object 'CAcroPDDoc' failed" with an HResult of -2147417851 (80010105) const short PDSAVEFULL = 1; AcroPDDoc CombinedPDF = new AcroPDDocClass(); CombinedPDF.Create(); CombinedPDF.Save(PDSAVEFULL, "C:\Test.pdf"); CombinedPDF.Close(); This happens on the .Close(); line. I am running XP Pro SP2, Acrobat 7 Pro and .NET 2003. The code is a simple Console app that binds onto the Acrobat COM libraries. This code also fails when I converted to VB6, just in case it was a .NET issue. Has anyone else had a similar problem ? Any ideas as ...

  1. #1

    Default Acrobat Automation causes a COM error

    Hi,

    When I run the following C# code, I am getting a COM exception "Method 'Close' of object 'CAcroPDDoc' failed" with an HResult of -2147417851 (80010105)

    const short PDSAVEFULL = 1;
    AcroPDDoc CombinedPDF = new AcroPDDocClass();

    CombinedPDF.Create();
    CombinedPDF.Save(PDSAVEFULL, "C:\Test.pdf");
    CombinedPDF.Close();

    This happens on the .Close(); line.

    I am running XP Pro SP2, Acrobat 7 Pro and .NET 2003. The code is a simple Console app that binds onto the Acrobat COM libraries.

    This code also fails when I converted to VB6, just in case it was a .NET issue.

    Has anyone else had a similar problem ? Any ideas as to why this might be happening ?

    Any ideas on how to get a more meaningful error out of this ? :-D

    Thanks

    Darryl
    Darryl_Blackwell@adobeforums.com Guest

  2. #2

    Default Re: Acrobat Automation causes a COM error

    For the record, upgraded to 7.0.8 and problem has gone away.

    Darryl
    Darryl_Blackwell@adobeforums.com Guest

Similar Threads

  1. automation of OCR and text extraction feasibility in Acrobat 9
    By Farmer_Schlutzenberg@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 7
    Last Post: December 18th, 11:14 AM
  2. IAC using OLE automation in Acrobat 9
    By VladV in forum Adobe Acrobat SDK
    Replies: 0
    Last Post: October 24th, 09:08 AM
  3. Replies: 0
    Last Post: May 18th, 03:07 AM
  4. VRML to PDF using Acrobat Automation. Is it possible?
    By DBezrukov@adobeforums.com in forum Adobe Acrobat SDK
    Replies: 1
    Last Post: December 19th, 11:35 AM
  5. Acrobat SDK 7.0 Automation at server side
    By ritesh in forum Adobe Acrobat SDK
    Replies: 0
    Last Post: November 22nd, 05:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139