Replaing placeholder with an image or a table

Hi,

how can I replace a placeholder text by an image or table? Is there any sample demonstrating this?

And another question if I got a TextSelection using find methods how do I get information about the section and paragraph this selection is part of?

Regards,
Christian


1 Reply

LD Lakshmi Devi S Syncfusion Team November 23, 2011 06:23 AM UTC

Hi Christian,

Thank you for your interest in Syncfusion Products.

You can replace a placeholder text by an image or table using the TextBodyPart class. Kindly refer the below online documentation link for more information.

Documentation link:
http://help.syncfusion.com/ug_94/Reporting/DocIO/Windows%20Forms/default.htm?turl=Documents%2F455replace.htm

You can also refer the online sample available in the below link:
http://asp.syncfusion.com/sfaspnetsamplebrowser/9.3.0.61/Web/DocIO.Web/Samples/4.0/Editing/ReplaceWithFormatting/CS/ReplaceWithFormatting.aspx

Regarding your query about retrieving the section and paragraph of a TextSelection, you can make use of the WTextRange class to obtain the information.

We have created a sample to illustrate your requirement. Do find the sample in the below link and let us know if it was helpful.

Sample link:
http://www.syncfusion.com/downloads/Support/DirectTrac/85690/FindAndReplaceSample500999914.zip

Please let us know if you have any questions.

Regards,
Lakshmi Devi S


Loader.
Up arrow icon