What does openDocument give back? Does it exist? If not, you have to
check the
initialization of your xComponent.
Tobias Krais schrieb:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]