We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Conversion of old office documents to newer OOXML format

Hi, I am trying to evaluate Aspose for a requirement where I have to convert old office documents(.doc,.xls,.ppt etc) to newer format i.e .docx, .xlsx, .pptx etc.

I was nto able to find a straight solution to it, I ran the below code but it saves the document in compatibility mode and does not convert it. Can anyone help me with this.

Document doc = new Document@“D:\Test Document\text.doc”);
doc.Save(@“D:\Test Document\text.docx”, SaveFormat.Docx);


Thanks for your inquiry. Have you also tried the latest version of Aspose.Words for .NET i.e. 20.4 on your end? In case the problem still remains, please ZIP and upload your input DOC Word document and Aspose.Words generated output DOCX file showing the undesired behavior here for testing. What version of MS Word desktop application are you using on your end? We will then investigate the issue on our end and provide you more information.

Also, do you still see the same problem when running the following code on your end?

Document doc = new Document("E:\\Temp\\text.doc");

OoxmlSaveOptions opts = new OoxmlSaveOptions(SaveFormat.Docx);
opts.Compliance = OoxmlCompliance.Iso29500_2008_Transitional;

doc.Save("E:\\Temp\\text.docx", opts);