To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=67869
Issue #|67869
Summary|Access to bookmark anchors in table cells fails
Component|Word processor
Version|OOo 1.1.3
Platform|All
URL|
OS/Version|All
Status|NEW
Status whiteboard|
Keywords|
Resolution|
Issue type|DEFECT
Priority|P3
Subcomponent|programming
Assigned to|os
Reported by|os
------- Additional comments from [EMAIL PROTECTED] Fri Jul 28 03:33:00 -0700
2006 -------
The following macro tries to access a field which is enclosed with a bookmark.
It fails if the field is located in a table cell.
Sub getTextFieldInBookmark(bookmarkName as String)
bookmark = ThisComponent.getBookmarks().getByName(bookmarkName)
' get Paragraph
enu = bookmark.Anchor.createEnumeration()
par = enu.nextElement()
' get TextPortion that has property TextField (second element)
enu = par.createEnumeration()
enu.nextElement() ' first element is the bookmark-portion itself
portion = enu.nextElement() ' second element is the textField-range
getTextFieldInBookmark = portion.TextField
End Sub
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
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]