Hi, Gianpiero Napoli wrote:
> Hi All, > > I need to get a reference to the current spreadsheet without create a new one. You can get the "current document", but you must be aware that this depends on timing. If a document has been loaded it may take some time until it becomes the "current document", especially on Linux where the focus is transferred to the document asynchronously. It's also possible that there is no current document at all, because only the start module is loaded. With these limitations the current document can be retrieved via xDesktop.getCurrentComponent(); This may be empty and it may be another type of document, so check for both. Regards, Mathias -- Mathias Bauer (mba) - Project Lead OpenOffice.org Writer OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS Please don't reply to "[email protected]". I use it for the OOo lists and only rarely read other mails sent to it. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
