Copy bookmarks

Hi,

I'd like to predefine some areas in a doc template with some bookmarks with other bookmarks inside. Then I'd like to select the bookmark and copy it to a new document with other bookmarks in it (like a template). If I try it in word, it will copy the bookmarks inside, but I've not found any sample or description to do the same with DocIO. Is it possible and how?

Adi


5 Replies

PR Poornima R Syncfusion Team September 7, 2011 07:41 AM UTC

Hi Andreas,

Thank you for your interest in Syncfusion Products.

We have prepared the sample to meet your requirement of “Copying the bookmarks from one document to another document along with the nested bookmarks content”. Please find the sample from the below link. In this sample we have used the BookmarkNavigator class to get the specified bookmark content (along with the nested bookmark content) and copied the content to the newly created word document. Try running the sample and let us know if this helps you.

Sample:
GenerateWordDocument-262942144.zip

For more information about bookmark navigation, please refer the below links

Online Documentation link:
http://help.syncfusion.com/ug_93/Reporting/DocIO/ASP.NET/default.htm?turl=Documents%2F44131bookmarknavigator.htm
Online sample link:

http://asp.syncfusion.com/sfaspnetsamplebrowser/9.3.0.61/Web/DocIO.Web/Samples/4.0/Editing/Bookmark_Navigation/CS/Bookmark_Navigation.aspx

Please let us know if you have any questions.

Regards,
Poornima




AH Andreas Hirtzel September 14, 2011 11:36 AM UTC

Hi Poornima,

this works for text, but not for tables. I have to predefine a table and multiply the entire with the number of element data.

Andreas



PR Poornima R Syncfusion Team September 16, 2011 08:25 AM UTC

Hi Andreas,

Thank you for your update.

We have prepared the sample for your requirement of copying the table (within the bookmark content) and multiply the table with new data. Please find the sample from the below link. Try running the sample and let us know if this helps you.

Sample:
GenerateWordDocument264420399.zip

If the above sample is not your actual requirement could you please elaborate on your clear requirement. Please provide us with your input word document and the expected output so that we can provide you with appropriate solution.

Please let us know if you have any questions.

Regards,
Poornima





AH Andreas Hirtzel September 27, 2011 07:43 AM UTC

Thanks, it works fine.



PR Poornima R Syncfusion Team September 28, 2011 04:58 AM UTC

Hi Andreas,

Thank you for your update.

Please let us know if you have any other questions.

Regards,
Poornima



Loader.
Up arrow icon