Free Support Forum - aspose.com

Macro not visible & working word 2007

Hi,

We have A.docm which has a macro. B.docm does not have anything except ‘test’ content. When we try to copy the content from B to A, some how could not view the macro in view->macro option.

We use below code

Document oTarget = new Document(“A.DOCM”);
oTarget.Sections.Clear();
foreach(Section oSection in oSource.Sections)
{
Section oNewSection = (oTarget.ImportNode(oSection, true) as Section);
oTarget.Sections.Add(oNewSection);
}
oTarget.Save(sSourcePath);

we use the same logic for Word 2003 (A.doc & B.doc). everything works fine.

Thanks

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Could you please attach your input document here for testing? I will check the problem on my side and provide you more information.

Best regards,

Here it is

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thank you for additional information. This problem is already resolved in the current codebase. The fix will be included into the next hotfix, which will be released within 4-5 weeks. You will be notified.

Best regards,

The issues you have found earlier (filed as 9658) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.