How to keep source formatting in word 200311/11/2023 ![]() ![]() ![]() However, the tables are messed up.Īlso, if there is a Page Break, the output is different.Īlso, at the end of the document a paragraph mark is added, as follows: Word.Application objWordOpen = new Word.Application() ĭocument doclocal = (tempsave) ĭocument d1 = (savelocation) ĭ1.() String savelocation = //location of existing document Having these limitations in mind, I first created the following method: string tempsave = //location of user created document The document generated by the webserver (existing document) is a Word 2003 document, but the document created by the user is either a Word 2003 document or Word 2007+. This is because the existing document is a document that is generated from a webserver and has VBA modules for uploading it back to the server. I cannot simply copy the file using System.IO or saving a copy of the document created by the user using SaveAs methods in Word Interop. The existing document content must be an exact mirror to the document created by the user. I want to copy the content of a document created by the user to an existing document. ![]()
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |