private string GetBookMarkValue(IWordDocument doc, string bookMarkName)
{
string value = "";
Bookmark bm = doc.Bookmarks[bookMarkName];
if (bm != null)
{
value = bm.BookmarkStart.OwnerParagraph.Text;
}
return value;
}
Hi Brain
Thank you for your interest in
Syncfusion product
We have analyzed your document and found that you have added
the bookmark by selecting cell instead of selecting text in the cell, by doing
this bookmark start and end inserted over different textbody(cells) instead of
in a single paragraph. Currently using DocIO it is not possible to get the
content of bookmark if the bookmark start and end presents in different
textbody(cells).
As a workaround select only the text in the cell and then
add appropriate bookmark. For your reference
we have modified your document to place the bookmark start and end inside a
single paragraph and prepared a video to illustrate this workaround. Please
find the sample with modified document and the video from the following link
and let us know if this helps you.
Modified document:
http://www.syncfusion.com/downloads/Support/DirectTrac/95371/Sample-872376323.zip
Video:
http://www.syncfusion.com/downloads/Support/DirectTrac/95371/workaround901824322.zip
Please let us know if you have any other questions.
Regards
Ramkumar
Hi Brain,
You're welcome. Please let us know if you have any other questions.
Regards,
Ramkumar
Hi Brain,
You're welcome. Please let us know if you have any other questions.
Regards,
Ramkumar