Hi again, finally I found the solution...
> Following code always retruns "null". The variable openDocument is an > instance of the class XComponent. Why does it always return null, > although the document is opened correctly and contains two bookmarks > named "Textmarke01" and "Textmarke02"? > -----%<------ > // Get bookmark interface from document > XBookmarksSupplier xBookmarksSupplier = (XBookmarksSupplier) > UnoRuntime.queryInterface(XBookmarksSupplier.class, > openDocument); > -----%<----- I imported com.sun.star.sdb.XBookmarksSupplier instead of com.sun.star.text.XBookmarksSupplier. It is obvious that aXTextDocument does not implement the XBookmarksSupplier from the sdb package. But thanks a lot for your suggestions! Greetings, Tobias --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
