Save Document to Word 2016 Format to Stop it from Opening in MS Word in Compatibility Mode C# .NET

I am using Aspose Word for .NET

when I save down the aspose word… The result docx opens in compatibility mode.
Can I save it down in Word2016 version ? How do I do that ? Thank you .

@nick1234,

Please try using the following code:

Document doc = new Document("E:\\Temp\\HTMLPage1.html");
doc.CompatibilityOptions.OptimizeFor(MsWordVersion.Word2016);

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

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

This bloats the size up from 50kb to 3MB.

How can I keep the size intact or small ? Is there a compressed option ?
Thank you

@nick1234,

This bloats the size up from 50kb to 3MB.
How can I keep the size intact or small ? Is there a compressed option ?
Thank you

Please follow your other thread for further proceedings.