Hi,
Can you tell me what is the best way to update a Aspose.Word.Document created from a stream passed in parameter to a method please ??
Here wath i’ve done :
private void addWatermark(Stream fileStream, string watermarkText)
{
Aspose.Words.Document doc = new Aspose.Words.Document(fileStream);
… some processes …
doc.Save(fileStream, Aspose.Words.SaveFormat.Docm);
}
If i do that, my file is corrupted. But if i save the document into another file like that :
doc.Save(@“C:\Users\User\Documents\test.docm”, Aspose.Words.SaveFormat.Docm);
It works !
Is it not possible to save changes to the same stream that the source?
Thanks !
Kevin