I have two documents (document1, document2), one with header and one not. (Assume document2 has header)
When I merge these two documents by pragraphs, as very well documented in
Code Snippet -
Result.docx file genrated with few pages having header and few not.
var document1WmlDocument = new WmlDocument(document1);
var document2WmlDocument = new WmlDocument(document2);
var staticDataSource = new Source(document2WmlDocument, 0, 10, true);
var document1Source = new Source(document1WmlDocument, true);
var document2Source = new Source(document2WmlDocument, 10, true);
// Build and merge the source documents
I had run the similar test with slight modification to KeepSections
Option (Highligted in Red).
var staticDataSource =
new Source(document2WmlDocument, 0, 10,
var document1Source = new Source(document1WmlDocument,
var document2Source = new Source(document2WmlDocument, 10,
This case for obvious, I loose sections, but will preserve headers. Eric suggested me to diff these both resultant files with SDK tool, unfortunately I haven't seen any difference other than the code snippet for preserving 'Section
This use case seems to be very basic, is it by design ? Your help will be greatly appreciated.
(Shared, sample source with Eric, anyone else would like to see sample let me know)
Surprized that I have not received any suggestions. Can anyone atleast confirm, is it by design (expected behaviour)?