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.

Insert data using Bookmarks

Thread ID:

Created:

Updated:

Platform:

Replies:

59376 Apr 11,2007 06:39 PM Apr 27,2007 06:54 AM ASP.NET Web Forms (Classic) 3
loading
Tags: DocIO
Thomas
Asked On April 11, 2007 06:39 PM

I'm trying to fill-in a document full of many bookmarks in merge like manager. The idea is that I navigate to a bookmark, insert some text and move on to the next bookmark.

I would expected something like the following would have worked:
WordDocument doc = new WordDocument();
doc.Open(...);
BookmarksNavigator nav = new BookmarksNavigator( document );

foreach( Bookmark bk in doc.Bookmarks )
{
nav.MoveToBookmark( bk.Name, false, true );
string name = bookmark.Name;
nav.InsertText( name );
}

However, the result is that only some of the bookmarks are filled in and most are skipped. Is this the way to insert text at a bookmark location and if so why are only some getting filled in?

Bhuvaneswari P [Syncfusion]
Replied On April 12, 2007 09:13 AM

Hi Thomas,

I am afraid that I was unable to reproduce the issue that you have mentioned here.

Herewith I have attached the sample for your reference.
http://websamples.syncfusion.com/samples/DocIO.Windows/F59376/main.htm

Could you please try running the above sample and let me know still you are facing any problem, if not could you please modify the sample or provide me your word template to reproduce the issue, so that I would be able to reproduce the issue and investigate further on this issue.

Thank you for your interest in Syncfusion products.

Best Regards,
Bhuvaneswari

Srdjan Zivojinovic
Replied On April 25, 2007 09:39 AM

Hi, Bhuvaneswari.

While experimenting with the bookmarks I was able to reproduce this error with your code.

I have only modified your template a bit.
Bookmarks are now located inside table cells.

I am sending you modified template.

Application finds bookmarks correctly but no text is written in some bookmarks.

Bookmark_Template_Table.zip

Bhuvaneswari P [Syncfusion]
Replied On April 27, 2007 06:54 AM

Hi Srdjan,

Thanks a lot for your file.

I was able to reproduce the issue. This issue has been fixed in our new version 5.1. Could you please open a Direct-Trac incident with regard to this issue, so that we can provide you the link to download the v5.1 version. Please open the new incident with the below subject.

Subject:59376- Insert data using Bookmarks

Please let me know if you have any other queries.

Thank you for your interest in Syncfudion products.

Best Regards,
Bhuvaneswari.

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.

;