Adding a paragraph

Hi,

The normal way of adding a paragraph to a Word-document is by using section.AddParagraph() and use the return value. Can we also do the opposite? First create a new paragraph and afterwards add or insert it in a section? 

I'm trying to implement this with new WParagraph() and add this to section.Paragraphs.Add(). But when I do this, my code runs very slow instead of using the AddParagraph().


1 Reply

AN Anto Nihil Sahaya Raj Syncfusion Team September 22, 2022 06:14 PM UTC

Hi Stephane,

We have tried to reproduce the reported problem (Code runs very slow while using section.Paragraphs.Add()
instead of section.AddParagraph() approach), but it works properly at our end. For your reference, we have attached the sample application which we tried to reproduce the reported problem at our end. We suggest you to try the attached sample at your end. Please find the sample from below link,
https://www.syncfusion.com/downloads/support/directtrac/general/ze/ConsoleApp1-1097141216.zip

Could you please try the same sample application at your end and provide us confirmation whether you are facing issues in this simple sample too.

If the issue is not reproduced using the attached sample application at your end, then could you please modify the attached sample as an issue reproducible sample application and share us. Thereby, we will proceed further to replicate the same problem at our end and
will provide you appropriate solution at the earliest.

Regards,
Anto Nihil S


Loader.
Up arrow icon