Hello,
i use Aspose v2.0.50727 and i want to convert a docx template to xml file, i used the folowing code but i have always error (the content is false) :
System.IO.MemoryStream ms= new System.IO.MemoryStream();
Aspose.Words.Saving.XpsOptions options= new Aspose.Words.Saving.XpsOptions();
db.Document.SaveToXps(0,db.Document.PageCount,ms,options);
return ms;
nacata:
Hello,
i use Aspose v2.0.50727 and i want to convert a docx template to xml file, i used the folowing code but i have always error (the content is false) :
Aspose.Words provides exhaustive
support for different XML-based formats for word processing documents
e.g. OOXML, Flat OPC and also Word 2003 XML. For more details, please
visit the following link: https://docs.aspose.com/words/net/supported-document-formats/
nacata:
Hello,
System.IO.MemoryStream ms= new System.IO.MemoryStream();
Aspose.Words.Saving.XpsOptions options= new Aspose.Words.Saving.XpsOptions();
db.Document.SaveToXps(0,db.Document.PageCount,ms,options);
return ms;
If you want to save Word document to XPS, please use Document.Save method.