We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Find and Replace Shapes

Thread ID:

Created:

Updated:

Platform:

Replies:

116410 May 20,2014 02:36 PM UTC May 21,2014 03:18 PM UTC WinForms 1
loading
Tags: DocIO
Sean Roddis
Asked On May 20, 2014 02:36 PM UTC

Hey,

is there any way to find and replace shapes of an existing document?

best reguards,

sean roddis

Sathish K [Syncfusion]
Replied On May 21, 2014 03:18 PM UTC

Hi Sean,

 

Thank you for your interest in Syncfusion products.

 

As per the MS Word behaviour, DocIO doesn’t have any API to find and replace the auto shapes present in a word document. Alternatively we can find the auto shapes present in the word document based on the “Title” information of the shape and replace the shape with new shape which has the desired “Title”. We have prepared a sample to illustrate the same. In this sample we iterate the paragraph items and find shapes based on the given “Title”. Then we remove the shape from the paragraph which has the given title and inserts a new shape in the place of old shape. Please do find sample from below link.

 

Sample link:

http://www.syncfusion.com/downloads/support/directtrac/125316/Sample1333789330.zip

 

Note:

This workaround is applicable for the “docx” format documents only since DocIO provides only preservation support for Auto shapes in Binary format document (.doc).

 

Please let us know if you have any other questions.

 

Regards,

Sathish


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;