I use a licensed version of Spire.Doc. The word document generated by Spire doc is Word97. The document generated opens in compatibility mode since the generated document is an older version, is there a way to generate latest versions of the word document through Spire Doc?
Below is the code to generate document
- Code: Select all
Spire.Doc.Document document = new Spire.Doc.Document();
Console.WriteLine($"Document version is {document.Properties.Version}");
FileFormat fileFormat = FileFormat.Docx;
var memoryStream = new MemoryStream();
document.TrackChanges = true;
document.SaveToStream(memoryStream, fileFormat);
memoryStream.Seek(0, SeekOrigin.Begin);
return memoryStream;
document.Properties.Version is a readony (get) property so I can't set the version, is there a way to set the version?
Also, the latest version defined on DocumenVersion enum is Word2007 that is Document created using Word 2007, but as per documentation (https://www.e-iceblue.com/Introduce/word-for-net-introduce.html#.YuRiyDfMK4Q) Spire.Doc supports Word 97-2003 /2007/2010/2013/2016/2019, so why does enum only has versions defined till word2007?
Appreciate your input.
Thank You,
Jalpa Ashara