Hello,
I have to merge two documents which contain numbered lists. I want source document to continue numbering of the first document. To achieve it, I use the following code:
var dstDoc = new Document(DestinationDocumentPath);
var srcDoc = new Document(SourceDocumentPath);srcDoc.FirstSection.PageSetup.SectionStart = SectionStart.Continuous;
dstDoc.AppendDocument(srcDoc, ImportFormatMode.UseDestinationStyles);var opt = new OoxmlSaveOptions(SaveFormat.Docx) { Compliance = OoxmlCompliance.
Iso29500_2008_Transitional
dstDoc.Save(ResultDocumentpath, opt);
The problem is, that these documents may contain text styles (WordArt). In the generated document I don’t have these styles. Also, AFAIK, these lists must have the same linked style, but my documents are not guaranteed to have them. Is there a way to create this style and apply it for both lists to make numbering continue? Or is there another solution to make numbering continue and use WordArt?
Thanks in advance