Forum rules DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.
When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
public void ExportFormData() {
var form = (IPXC_AcroForm)Editor.Doc.CoreDoc.AcroForm;
MessageBox.Show("Number of Fields:" + form.FieldsCount);
PDFXEdit.IAFS_Inst fsInst = (PDFXEdit.IAFS_Inst)Editor.Inst.GetExtension("AFS");
PDFXEdit.IAFS_Name destPath = fsInst.DefaultFileSys.StringToName(@"d:\temp\PDFExport.xml"); //Converting string to name
// This call leads to a NotImplementedException
form.Export(destPath, "XML", null, true, (uint)PXC_ExportFormFlags.FormExport_Default);
}
When calling form.Export(....) I get a NotImplementedException.
Some more information on this topic:
Because I had no success with the op_document_exportCommentsAndFields command so far, I also tried the cmd_forms_exportData command.
This command gets displayed if I look in the properties of the according UI Command. Unfortunately it is not possible to get an operation instance for that command (via Editor.Inst.CreateOp(...)).
Please see the images in the attached Zip File.