Hello, I am using the free version of Spire.Office for .NET and for some reason saving old word files doesn't work.
I am using MemoryStreams to pass the binary data and the problem is probably coming from the save methods, because for .docx I don't have any issues.
I tried using files on my disk and used both SaveToFile and SaveToStreams methods, but nothing seems to work.
I do get a word file, but it is corrupted with a bunch of gibberish.
If there are some configurations on the document class I need please tell, also I haven't used any licence because I am just testing conversions for a course project.
I uploaded the file I am trying to convert and what I get in return.
I also tested with other types and nothing seems to work for .doc and also tried only the separate package of Spire.Doc.
This is my code:
Document document = new Document();
document.LoadText(".\\test123.txt", Encoding.UTF8);
MemoryStream outputStream = new MemoryStream();
document.SaveToFile(".\\test123.doc", Spire.Doc.FileFormat.Doc); or document.SaveToStream(outputStream, fileFormat);