Code: Select all
this.importDataObject(myData, '/C/myFile.xml');
this.addAnnot({ page: 0, type: 'FileAttachment', point: [150,150], name: 'dataAnnotation', attachIcon: 'myData' });
I tried then to attach a file as described in the SDK guide, something like this:
Code: Select all
Dim vDataIn As Object = Nothing
Dim vDataOut As Object = Nothing
Dim vArr(3) As Object
vArr(0) = sFileName
vArr(1) = "AttachedFile"
vArr(2) = "prova allegato"
vDataIn = vArr
AxCoPDFXCview1.DoDocumentVerb(_iActiveDocID, Nothing, "AddAttachment", vDataIn, vDataOut)
Code: Select all
this.addAnnot({ page: 0, type: 'FileAttachment', point: [150,150], name: 'dataAnnotation', attachIcon: 'AttachedFile' });
Can you please tell me where I'm wrong? Is it possible to create a FileAttachment annotation programmatically?
Thank you,
Fabrizio