FillFormCS sample and Acrobat 9.0 Pro

Ask a Question related to Adobe Acrobat SDK, Design and Development.

  1. #1

    Default FillFormCS sample and Acrobat 9.0 Pro

    I have an application that is similar to the SDK sample application FillFormCS. I just upgraded from Acrobat 7.0 Pro to Acrobat 9.0 Pro. Both my app and FillFormCS worked with 7.0, but with 9.0 they give me the same exception: "No document is currently open in the Acrobat Viewer".

    The problem seems to be connected to the avDoc's Open() and OpeninWindowEx() functions. The document never really seems to get opened.

    Can anyone tell me if FillFormCS is supposed to run correctly with Acrobat 9.0 Pro when built from Visual Studio 2008? Visual Studio upgraded the solution and source files automatically. The references to the type library and ActiveX control seem fine.

    If the problem is with VS 2008, can anyone suggest what I could do since VS 2005 isn't an option?

    Thanks for any help you can give me.
    Larry_Fluckiger@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. FillFormCS: C# Example Requirements
      I downloaded the SDK as well as the examples. I was running Acrobat Professional 6.0 and Reader 7.0. The sample did not work, so I updated the Reader...
    2. Acrobat plugin - sample files
      The acrobat plugin sample file 'uncompressed pdf' returns the error by clicking the 'build' option in vc++: error LNK2001: unresolved external...
    3. Parlez-vous Acrobat? Sprechen Zie Acrobat? Habla Acrobat?
      Diana Goddard, "Unsupported Language" #2, 11 Jul 2005 11:07 am </cgi-bin/webx?13@@.3bbb44a3/1>
    4. TNA or MTA sample
      Hi, I'm looking for an ATL sample that illustrates how to develop COM objects that are TNA and MTA and can be used by COM+ and IIS. thanks Paul
    5. Here you have a sample
      Without more specifics I can show you how to get the data. This is assuming a lot because I am confused about what you want to do. Here is what I...
  3. #2

    Default Re: FillFormCS sample and Acrobat 9.0 Pro

    I just tried FillFormCS on a third computer, this time built with Visual Studio 2005. Same problem.

    Can anyone successfully run the FillFormCS sample that comes with Acrobat 9.0 SDK? It is found in ...\Adobe\Acrobat 9 SDK\Version 1\InterAppCommunicationSupport\C#Samples\FillFormC S.

    Is the InterAppCommunications still supported. Has it been replaced with something better?

    Thanks for any help you can give me.
    Larry_Fluckiger@adobeforums.com Guest

  4. #3

    Default Re: FillFormCS sample and Acrobat 9.0 Pro

    I don't have VS 2008 to test with but it works as expected with VS 2005 and Acrobat 9.

    IAC is still supported.

    The only thing I can think of is that the path to the file is not correct, have you tried hard coding the path ?

    HTH

    Malky
    malkyt8@adobeforums.com Guest

  5. #4

    Default Re: FillFormCS sample and Acrobat 9.0 Pro

    I get the same exact error message. Here is a sample of my C# code.

    CAcroPDDoc pdDoc = null;
    CAcroAVDoc avDoc = null;

    // create an PDDoc object
    avDoc = new AcroAVDocClass();
    pdDoc = new AcroPDDocClass();

    // Open the PDF
    avDoc.Open("pdf form");

    pdDoc = (CAcroPDDoc)avDoc.GetPDDoc();

    IAFormApp formApp = new AFormAppClass();

    IFields myFields = (IFields)formApp.Fields;

    IEnumerator myEnumerator = myFields.GetEnumerator();

    This is the same code that I have been using for a year now. It works fine with Acrobat 7.0 and Acrobat 8.1 but it fails if someone updates to Acrobat 8.1.3. The line of code that is the problem is
    IFields myFields = (IFields)formApp.Fields; and it give this error
    "No document is currently open in the Acrobat Viewer". Any help will be appreciated.
    Frank_Pearson@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may 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