I am using the exportCommentsAndFields method and it does not seem to save the annotation status??
Thanks
Simon
Annot Status not saved when exporting...
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan
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.
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.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Annot Status not saved when exporting...
Hello Simon,
Can you provide a code sample on how you are using this operation?
Cheers,
Alex
Can you provide a code sample on how you are using this operation?
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 510
- Joined: Sat May 16, 2009 1:55 pm
Re: Annot Status not saved when exporting...
Alex,
I am exporting the annotations like so:
And importing the annotation file like so:
Thanks
Simon
I am exporting the annotations like so:
Code: Select all
Dim nID As Integer = pxvInst.Str2ID("op.document.exportCommentsAndFields")
Dim pOp As PDFXEdit.IOperation = pxvInst.CreateOp(nID)
Dim input As PDFXEdit.ICabNode = pOp.Params.Root("Input")
input.v = Me.docPreview.Doc
Dim fsInst As PDFXEdit.IAFS_Inst = DirectCast(Me.docPreview.Inst.GetExtension("AFS"), PDFXEdit.IAFS_Inst)
Dim destPath As PDFXEdit.IAFS_Name = fsInst.DefaultFileSys.StringToName(MISData.Instance.DocShareName & "\Annotations\" & annotationFileOID.ToString & ".fdf")
Dim output As PDFXEdit.ICabNode = pOp.Params.Root("Output")
output.v = destPath
Dim options As PDFXEdit.ICabNode = pOp.Params.Root("Options")
options("ExportAnnots").v = True
options("ExportFields").v = True
options("DestFile").v = destPath
pOp.Do()
Code: Select all
Public Sub importComments(ByVal annotationFileOID As String)
Dim nIDImport As Integer = pxvInst.Str2ID("op.document.importCommentsAndFields", False)
Dim opImport As PDFXEdit.IOperation = pxvInst.CreateOp(nIDImport)
Dim inputImport As PDFXEdit.ICabNode = opImport.Params.Root("Input")
inputImport.v = Me.docPreview.Doc
Dim optionsImport As PDFXEdit.ICabNode = opImport.Params.Root("Options")
optionsImport("FileName").v = MISData.Instance.DocShareName & "\Annotations\" & annotationFileOID & ".fdf"
opImport.Do()
End Sub
Simon
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Annot Status not saved when exporting...
Hello Simon,
Can you confirm that the export to FDF does not export the status. or the import from the FDF does not import the exported status?
Cheers,
Alex
Can you confirm that the export to FDF does not export the status. or the import from the FDF does not import the exported status?
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
-
- User
- Posts: 510
- Joined: Sat May 16, 2009 1:55 pm
Re: Annot Status not saved when exporting...
Alex,
Have just figured out these is a problem with my code on another method. Please ignore this thread.
Sorry
Simon
Have just figured out these is a problem with my code on another method. Please ignore this thread.
Sorry
Simon
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
Re: Annot Status not saved when exporting...
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ