File tree Expand file tree Collapse file tree
Word-document/Copy-document-property/.NET/Copy-document-property Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22using Syncfusion . DocIO ;
33
44//Load an existing main Word document.
5- using ( WordDocument targetDocument = new WordDocument ( Path . GetFullPath ( @"../../Data/TargetDocument.docx" ) , FormatType . Docx ) )
5+ using ( WordDocument targetDocument = new WordDocument ( @"../../../ Data/TargetDocument.docx" , FormatType . Docx ) )
66{
77 //Load an existing template Word document.
8- using ( WordDocument sourceDocument = new WordDocument ( Path . GetFullPath ( @"../../Data/SourceDocument.docx" ) , FormatType . Docx ) )
8+ using ( WordDocument sourceDocument = new WordDocument ( @"../../../ Data/SourceDocument.docx" , FormatType . Docx ) )
99 {
1010 //Move Built-in document properties from one Word document to another Word document.
1111 MoveBuiltinDocumentProperties ( sourceDocument , targetDocument ) ;
1212 //Move custom document properties from one Word document to another Word document.
1313 MoveCustomDocumentProperties ( sourceDocument , targetDocument ) ;
1414 //Save the Word document.
15- targetDocument . Save ( Path . GetFullPath ( @"../../Result.docx" ) ) ;
15+ targetDocument . Save ( @"../../../Output/ Result.docx" ) ;
1616 }
1717}
1818
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments