I'm looking to do 2 things with TextDynamic
1) Hyperlinks
I've created a few bookmarks then hyperlinks to the bookmarks
When a user clicks the hyperlink the bookmark is shown at the bottom of the editor window.
How do I make the bookmark appear at the top of the editor window when a hyperlink to it is clicked so the user doesn't have to scroll down each time to read the text underneath the bookmark ?
So far I use the following code to jump to the bookmark
--------------------------
private void wpdWordProcessor_OnHyperlink(object sender, int i, string sBookmark, IWPTextObj t)
{
IWPMemo memo = wpdWordProcessor.Memo;
IWPTextCursor cursor = memo.TextCursor;
cursor.MoveToBookmark(t.Command.ToString());
}
----------------------------
2) Hiding Carriage Return Chars
When the editor starts I want it to start with the Carriage Return characters hidden
I've tried the following but it doesn't seem to work
----------------------------
wpdWordProcessor.Memo.SetBProp(BPropSel.wpViewOptions, 2, 0);
----------------------------
Thanks
Wayne