Ask a Question related to Adobe Acrobat SDK, Design and Development.
-
Atin Wadehra #1
Reason for Error "No form is open in Acrobat Viewer"
Am trying to use the AcroForms plug-in using IAC in VC++ to populate fields by opening PDFs in memory. The method PDDoc->OpenAVDoc is bringing the Acrobat window in front. If I comment this method, am getting the error "No form is Open in Acrobat Viewer". Below is my code
// Create the Acro App object
pAcroApp = new CAcroApp;
pAcroApp->CreateDispatch("AcroExch.App", &OleExc)
// Create the PDDoc object
pAcroPDDoc = new CAcroPDDoc;
pAcroPDDoc->CreateDispatch("AcroExch.PDDoc", &OleExc)
// Open the PDF File
pAcroPDDoc->Open(cstrPdfFile)
// Create the AVDoc object
pAcroAVDoc = new CAcroAVDoc;
pAcroAVDoc->AttachDispatch(pAcroPDDoc->OpenAVDoc(cstrPdfFile), true);
// Create the Forms Automation object
pFormApp = new IAFormApp;
pFormApp->CreateDispatch("AFormAut.App", &OleExc)
// Get the collection of fields pFields = new IFields(pFormApp->GetFields());
The above line is producing the error mentioned above on commenting the OpenAVDoc method. Can someone provide help??
Atin Wadehra Guest
-
Acrobat Pro does not open because : "language resources"
Suddenly (I think after an update about a month ago) Acrobat Pro 6.0.2 refuses to open. I get this message : «The currently selected language... -
Gray Out "Save As" option when client open a6 Pro Mac form in 5 Std PC
I have created a simple form in acrobat 6 pro Mac and I would like my client to open it in a Acrobat 5 PC and be able to "save as" with filled in... -
Acrobat Form Submit error: changes VALUE="true" to "0"
I wrote an HTML page with a form. In the form I had many inputs as in: <INPUT TYPE="radio" NAME="Q1" VALUE="true"> and <INPUT TYPE="radio"... -
"Unable to open file for writing" - Acrobat PDF issue?
Is anyone else getting the error message "Acrobat PDF file Format is having difficulties. Unable to open file for writing. It may be locked or... -
PDF and program won't open; "Error in Acrord32" "This program has performed an illegal operation and
I recently had a browser hijacker. Fixed it with Norton and Lavasoft. Now, after downloading new Reader 6.0, I can't open anything. Only gives... -
Atin Wadehra #2
Re: Reason for Error "No form is open in Acrobat Viewer"
The error also comes if I make a call to AcroApp.Hide method before calling the OpenAVDoc method.
Atin Wadehra Guest
-
NiceNix@adobeforums.com #3
Re: Reason for Error "No form is open in Acrobat Viewer"
You are getting this error message because your pFormApp object can't find a form to get the fields from. You have to open the form in the Viewer (via OpenAVDoc) first. The same is true for AcroApp.Hide. If you don't have a doc open, it has nothing to hide.
NiceNix@adobeforums.com Guest
-
Atin Wadehra #4
Re: Reason for Error "No form is open in Acrobat Viewer"
Nix,
Am making the call to OpenAVDoc before creating the pFormApp object.
Also, am unable to find out any documentation specifying the reason for this error and when it'll occur. There is only a single line mentioned about this error in the IACReference.pdf
Atin Wadehra Guest
-
Ivan_Pechorin@adobeforums.com #5
Re: Reason for Error "No form is open in Acrobat Viewer"
I faced the same issue, and didn't find a way to get the collection of fields without showing Acrobat window.
So, currently I call CAcroApp::Show then CAcroApp::Minimize before trying to get fields.
By the way, which versions of Acrobat and Acrobat SDK do you use? Based on Acrobat 9 type library imported into VS2005 via class wizard:
1) IAFormApp is abstract class, so you can't instantiate it via "new IAFormApp", I use CAFormApp class instead;
2) I use method CAFormApp::get_Fields to get the collection of fields.
Ivan_Pechorin@adobeforums.com Guest
-
Atin Wadehra #6
Re: Reason for Error "No form is open in Acrobat Viewer"
Ivan,
Am currently using Acrobat 7 and 7 SDK and have a workaround to call CAcroApp::Minimize just after OpenAVDoc for not showing the viewer.
However this is not working in Acrobat 9. So, am waiting for a workaround in 9.0 before migrating.
Atin Wadehra Guest



Reply With Quote

