I m using document builder to merge document sources but im facing a problem with numbering part.
All Heading styles are shown in bullet style.
Here is the code:
var sources = new List<Source>(); foreach (var s in files) { sources.Add(new Source(new WmlDocument(s), true)); }
string outputFile = "Output.docx";
DocumentBuilder.BuildDocument(sources, outputFile );
Any Help would be appriciated.
Hi hcoco,
I need more information in order to be able to comment on this. What is the problem you are facing?
-Eric
hi,
I know it is a bit old, but ...
I have recently analysed document with exactly the same problem.
I suspect in case of document merge the following is happening.
1. your style for heading contains references to numbering
2. during the merge, the actual instance num got changed or disappear and your style is pointing to num instance corresponding to bullet numbering
What should be done:
- before merge take note of abstract num used by style in question
- merge as before
- find the abstract num, create num pointing to abstract num, update reference in style
cheers,
pawel