Best way to open a document- modify it- then stream the new document

Hello,

I am using .Words to do some document modifications. Basically, here is what I need to do, but I’m not sure of the best way to go about it.

  1. I have a template (.doc) that I need to open.
  2. I need to modify the template by inserting some variables using bookmarks.
  3. I need to immediately stream that document to the user’s browser so they can open or save the new document.

I can accomplish 1 and 2, but not sure how to go about 3. I know I can save the modified document using .Words, then open the document using the FileInfo object, but I really don’t need to save it. Is there a way I can accomplish 3 without phsyically saving the modified document to the server before I flush the file to the user?

Thanks in advance,

Lee

Hi

Thanks for your request. You can send a document directly to the client’s browser. Please see the following link for more information:
https://reference.aspose.com/words/net/aspose.words/document/save/
Hope this helps.
Best regards.