Simone Padovan

FYI, SwDMDocument.ReplaceReference doesn't works. Sent a bug report to API Support

Discussion created by Simone Padovan on Apr 1, 2016
Latest reply on Apr 13, 2016 by Simone Padovan

Hello everyone,

I've sent a bug report to API Support to show this problem. Code like this doens't works:

 

SwDMDocument18 dmDoc;

 

SwDMExternalReferenceOption2 extRefOpt;

 

...

var res = dmDoc.GetExternalFeatureReferences2(extRefOpt);

String[] externalReferences = (String[])extRefOpt.ExternalReferences;

dmDoc.ReplaceReference(externalReferences[0], <new path file name>);

 

dmDoc.Save();

 

dmDoc.CloseDoc();

 

At the end the file referenced isn't changed.

Regards,

Simone

 

 

 

 

 

 

Outcomes