[api-dev] Java: cannot insert Bookmarks

2006-10-24 Thread Tobias Krais
Hi together again, after trying to get the bookmarks of a document, I now want to insert a bookmark and have again troubles. Here my code: -%- // Query for an XMultiServiceFactory instance from the global // service manager XMultiServiceFactory mxMSF = (XMultiServiceFactory)

Re: [api-dev] Java: cannot insert Bookmarks

2006-10-24 Thread Jimmy
I think you create the MSF of your XTextDocument object. That's just a wild guess though XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface( XTextDocument.class, xComponent); XMultiServiceFactory mxMSF = (XMultiServiceFactory)