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

Free Support Forum - aspose.com

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!



Thanks for your inquiry. You can use LoadFormat in this case. Please see the following thread for more information.

<A href="https://forum.aspose.com/t/102266</A></P> <P>Hope this helps.</P> <P> </P> <P>Best regards.</P>

works, good idea about the switch case, and previously store the LoadFormat.

have a nice day, thnks for ur rapid answer.