Fernand Vanrie wrote:
OK: its a issue <http://www.openoffice.org/issues/show_bug.cgi?id=90995>
and sould by fixed in 3.0
Hello all,
I can create a Bookmark in a WritterDoc but I fail to set the
bookmarked content string.
With the code below the string appears in the doc but the
anchor.string is empty, is this a bug or am i doing somthing wrong ?
code:
Sub MakeBookmark
Dim Doc As Object , Cursor As Object
Doc = ThisComponent
Cursor = Doc.currentcontroller.ViewCursor
Bookmark = Doc.createInstance("com.sun.star.text.Bookmark")
Bookmark.Name = "fernand"
Doc.Text.insertTextContent(Cursor, Bookmark, True)
Doc.getBookmarks().getByName("fernand").Anchor.setString("the text who
suposed to been bookmarked")
print Doc.getBookmarks().getByName("fernand").Anchor.String
End Sub
thanks for any help
Fernand
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]