Word creates incorrect XAML Fixed Document

I have a WORD document that when I save it to XAMLFixed in the Document Explorer sample, the resulting file will not open. The error says that a Paragraph may not be a child of a Paragraph. When the XAML file is opened in Notepad, on the first page there is a Paragraph created within a Paragraph. If I remove the extra one, the file will open.

Is there a setting to have the resulting XAML file reflect the layout and graphics within the original Word document?

Thank you,

Jeff

Hi Jeffrey,


Thanks for your inquiry. While using the latest version of Aspose.Words i.e. 10.8.0, I managed to reproduce this issue on my side. I have logged this issue in our bug tracking system. Your request has also been linked to the appropriate issue and you will be notified as soon as it is resolved. Sorry for inconvenience.

Moreover, you can work around this problem by explicitly specifying saving format as below:

Document
doc = new Document(@“c:\test</font>AddIndexesToFileArchiveDatabase+User+Manual.doc”);
doc.Save(@“c:\test\out.xaml”, SaveFormat.XamlFixed);

I hope, this will help.

Best Regards,

The issues you have found earlier (filed as WORDSNET-5743) have been fixed in this .NET update and this Java update.


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