A
Alex
Hello,
I've encountered strange bookmark behaviour.
The code is in C# but it should not matter:
// myWordApp variable points to the Application object
// myBookmark variable points to a bookmark.
myBookmark.Select();
Word.Selection selection = myWordApp.ActiveWindow.Selection;
selection.Text = "\xD6";
So far so good, but if I do:
selection.Font.Name = "Wingdings";
or
selection.InsertParagraphAfter();
The bookmark disappears.
Can anyone explain what's going on and how to overcome this issue?
Thanks,
Alex.
I've encountered strange bookmark behaviour.
The code is in C# but it should not matter:
// myWordApp variable points to the Application object
// myBookmark variable points to a bookmark.
myBookmark.Select();
Word.Selection selection = myWordApp.ActiveWindow.Selection;
selection.Text = "\xD6";
So far so good, but if I do:
selection.Font.Name = "Wingdings";
or
selection.InsertParagraphAfter();
The bookmark disappears.
Can anyone explain what's going on and how to overcome this issue?
Thanks,
Alex.