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.
Unfortunately, activation email could not send to your email. Please try again.

How to remove a specified row in a given table?

Thread ID:

Created:

Updated:

Platform:

Replies:

117376 Oct 8,2014 07:14 AM Oct 16,2014 03:31 AM Windows Forms 3
loading
Tags: DocIO
Walter Porada
Asked On October 8, 2014 07:14 AM

Hi there

I want to use a word template with some placeholders in it. The placeholders are embedded in a table. If they are not needed, I want to delete the specified row completely. To archive this, I put a Bookmark on the Placeholder itself and a Bookmark on the tablerow which embedds the placeholder bookmark.

So the idea was if the placeholder could not get set, I navigate to the bookmark for the row and delete it alltogether. But when I try to do this I get an exception from the component: "Not supported deleting dontent between bookmarks in different paragraphs"

Is there any way to identify the specified row by the Bookmark and then remove the row from the table?

with best regards,
Walter

Nithya B [Syncfusion]
Replied On October 10, 2014 12:53 PM

Hi Walter,

 

Thank you for using Syncfusion products.

 

If your requirement is to remove the specified row from the table based on placeholder then you can find the owner paragraph of the placeholder using "Find" functionality of DocIO and then find the owner row of the paragraph and remove that row from the table. We have prepared a sample to illustrate the same. Kindly try this approach in your side to remove the desired row from the table. Please find the sample from the attachment.

 

Please let us know if you have any other questions.

 

Regards,

Nithya


Attachment: GenerateWord_Windows_67e2f7f.zip

Walter Porada
Replied On October 15, 2014 11:44 AM

Hi Nithya

Works like a charm. Just what I needed. Great Work and thank you.

Regards,
Walter

Nithya B [Syncfusion]
Replied On October 16, 2014 03:31 AM

Hi Walter,

Thanks for your update.

Please let us know if you need further assistance.

Regards,

Nithya


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.

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.

;