i'm using Novacode Docx for creating word document with c# but I have a problem with Merging two documents into one.As per my requirement i need to download two word documents without zipping them at once,However i didn't find a solution for that so, i have planned to merge the word documents and download them as a single file.Can some one help me how to merge word documents using Novacode Docx.
Thank you in advance.
I do it like this :
But i modified the DocX librairy to add DocumentMemoryStream property that exposes the memoryStream internal MemoryStream
If you dont want to modify the DocX library you can also do this :
GENERATED_DOCX_LOCATION is obviously a string with the physcal path of the file you want to save.