xceedsoftware / DocX

Fast and easy to use .NET library that creates or modifies Microsoft Word files without installing Word.
Other
1.78k stars 474 forks source link

Issue Loading ListParagraph when using Document template #471

Open oscarvs8 opened 9 months ago

oscarvs8 commented 9 months ago

We have a solution where users can generate DocX documents from scratch or they can load a template (with headers footers etc ). When we are genrating the document from scratch all works fine The problem is that if user selects a template and also we have bulleted list in a paragraph it throw error. When user load a template but there is no lists all works fine. The XML generate when it braks looks like this:

NAME DATE: IDENTIFIER : phone: e-mail: Address: Información clínica Last revision Datos demográficos fsdfdsfds After adding the list paragraph if we inspect the document it looks like this: ![image](https://github.com/xceedsoftware/DocX/assets/40390954/da41cf2d-61e0-4fb6-be29-3498d24d58d0) After this.Xml.Add( newXElement ); in COntainer.cs, Document is broken (no paragraphs etc). Any idea why we are having this issue? Thanks in advance for your response
XceedBoucherS commented 9 months ago

Hi, Can you submit your template and the exact steps required to reproduce this issue ? It will be simpler if I can reproduce the exception. Thank you