Word Document Format

It’s there any way to save an aspose document automatically to the format of the Stream it was parsed on.
I had a look, and it is as follows

Document.Save(Stream, SaveFormat)

My problem cames, cause I don’t know the format of the initial Stream, so after a few modifications using AsposeDocument, I need to serialize it back, of course in the same format of the initial Document.
Thnks in Advance!
Javier

Hi
Thanks for your inquiry. You can use LoadFormat in this case. Please see the following thread for more information.
https://forum.aspose.com/t/102266
Hope this helps.
Best regards.

works, good idea about the switch case, and previously store the LoadFormat.
have a nice day, thnks for ur rapid answer.