File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Paragraphs/Copy-style-between-documents/Copy-style-between-documents Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33
44using ( FileStream destinationStream = new FileStream ( Path . GetFullPath ( @"Data/DestinationDocument.docx" ) , FileMode . Open , FileAccess . ReadWrite ) )
55{
6- //Open the source document.
6+ //Open the destination document.
77 using ( WordDocument destinationDocument = new WordDocument ( destinationStream , FormatType . Docx ) )
88 {
99 using ( FileStream sourceStream = new FileStream ( Path . GetFullPath ( @"Data/SourceDocument.docx" ) , FileMode . Open , FileAccess . ReadWrite ) )
1010 {
11- //Open the destination document.
11+ //Open the source document.
1212 using ( WordDocument sourceDocument = new WordDocument ( sourceStream , FormatType . Docx ) )
1313 {
1414 // Retrieve the specific style from the source document.
You can’t perform that action at this time.
0 commit comments