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

Free Support Forum - aspose.com

Document.save corrupts Word2013 file

Hi,

we are using Apsose.Words.Net 14.5.0. to modify a document. If we do nothing but save it it gets corrupted and MSWord won't open it. We have found that there is no problem with a newly creaed word document, but that the problem occurs with a specific doc containing content controls, custom xml etc.

This is all we do (test files attached):

private static string SaveFile(string filename)
{
License l = new License();
var assembly = Assembly.GetExecutingAssembly();
string[] names = Assembly.GetExecutingAssembly().GetManifestResourceNames();
Stream s = assembly.GetManifestResourceStream(“WordXMLTest.Aspose.Words.lic”);
l.SetLicense(s);
Document doc = new Document(filename);
string newFilename = filename.Replace(".docx", “_ny.docx”);
doc.Save(newFilename);
return newFilename;
}

Best regards,

Sigge

Hi Sigge,

Thanks for your inquiry.

I
have tested the scenario and have managed to reproduce the same issue
at my side. For the sake of correction, I have logged this problem in
our issue tracking system as WORDSNET-10389. I have linked this forum
thread to the same issue and you will be notified via this forum thread
once this issue is resolved.

We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-10389) have been fixed in this .NET update and this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.