Hi,
We are using Aspose.Words.dll version 10.5.0.0. to generate word documents.
When we are merging multiple documents having ListNumbering in them them then the ListNumber in the output merged document is not coming correct (PFA OutputDoc.docx. Problem areas are highlighted in yellow). It should come as it is there in the input docs. PFA (DemoAsposeMarge.zip) sample application to reproduce the same.
Just run the application and click the generate button.
The “MasterDocument” folder contains the MasterDocument
The “InputDocument” folder conatins the document that are merged with the MasterDocument
The generated document can be found in the “OutputDocument” folder of the application.
This problem is coming in our production server so please provide solution asap.
Thanks,
Samanvay
Hi Samanvay,
Thanks for your inquiry.
I think this article in the documentation here will explain why this is occurring:
https://docs.aspose.com/words/net/insert-and-append-documents/
I have linked your request to the appropriate issue. You will be informed as soon as there are any developments.
In the mean time, please try using the work around described in that page and let us know if it works out for you.
Thanks,
Hi
Thanks for your quick reply
As per current implementation, we are merging 100 documents at a time. The solution provided by you; may affect the performance of our application, since we need to change id’s for every list item.
Therefore, could you please provide the solution include consideration the performance of the application as well.
Thanks in Advance for your kind help.
Thanks
Samanvay
Hi
Thanks for your request. The easiest solution, I can suggest you is using ImportFormatMode.KeepSourceFormatting instead of using ImportFormatMode.UseDestinationStyles. In this case list numbering will be preserved from source documents. Hope this helps.
The only disadvantage of this solution is that number of styles in your document will be increased. If you are merging too many documents, you can exit the limit of number of styles.
Best regards,
Hi
Thanks for your quick reply
In our application there is one master template that contains all the style and we have to merge the 100 document with this master template so we have to use ImportFormatMode.UseDestinationStyles in order to maintain master template style and we don’t want list number is continues in any documents.
Therefore, could you please provide any other solution considering the application requirement as well.
Thanks in Advance for your kind help.
Hi
Thank you for additional information. Unfortunately, I cannot suggest you any other way to resolve the problem. Anyways to resolve this problem programmatically, you will have to loop through all paragraphs in your documents.
Best regards,
The issues you have found earlier (filed as WORDSNET-4413) have been fixed in this .NET update and this Java update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.