Convert to XamlFixed document

I have a word docx document which save it to the type of Stream, when I try to convert to XamlFixed document, I have to provide the following information.

var option = new Aspose.Words.LoadOptions();
option.LoadFormat = Aspose.Words.LoadFormat.Docx;

var saveOptions = new Aspose.Words.Saving.XamlFixedSaveOptions();
saveOptions.SaveFormat = Aspose.Words.SaveFormat.XamlFixed;
saveOptions.ResourcesFolder = “Report”;

var doc = new Aspose.Words.Document(stream, option);
doc.Save(stream, saveOptions);

When I try to save the document to XamlFixed, the Aspose.Words didn’t create related folder and resources into the path. May I know what has been missing from the code? If I load the document from folder path contains docx file, it didn’t have such kind of problem.

@howcool,

The following code correctly places the resources in the path specified via the “XamlFixedSaveOptions.ResourcesFolder” option when using the latest version of Aspose.Words for .NET i.e. 18.5 on our end.

var option = new Aspose.Words.LoadOptions();
option.LoadFormat = Aspose.Words.LoadFormat.Docx;

Document doc = new Document("D:\\temp\\afold\\input.docx", option);

XamlFixedSaveOptions saveOptions = new Aspose.Words.Saving.XamlFixedSaveOptions();
saveOptions.SaveFormat = Aspose.Words.SaveFormat.XamlFixed;
saveOptions.ResourcesFolder = "D:\\temp\\afold\\resources\\";

MemoryStream stream = new MemoryStream();
doc.Save(stream, saveOptions);