Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
140899 | Nov 13,2018 12:15 PM UTC | Nov 16,2018 05:39 AM UTC | WinForms | 7 |
![]() |
Tags: DocIO |
//Open the source document
WordDocument sourceDocument = new WordDocument(sourceFileName);
//Open the destination document
WordDocument destinationDocument = new WordDocument(targetFileName);
//Import the contents of source document at the end of destination document
destinationDocument.ImportContent(sourceDocument, ImportOptions. KeepSourceFormatting);
//Close the document instance
sourceDocument.Close();
//Save the destination document
destinationDocument.Save(outputFileName, FormatType.Docx);
//Close the document instance
destinationDocument.Close(); |
|
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.