Hi Christoph, > from a quick look on what you wrote I would guess the problem lies in > XComponent openDocument instead of > XTextDocument openDocument, maybe someone wants to correct me.
>> 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); >> -----%<----- Sorry, it does not matter whether openDocument is of the type XComponent or XTextDocument. In both cases "null" is returned. Any other suggestions? Greetings, Tobias --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
