Re: [dev] How to get the current spreadsheet

2009-01-30 Thread Cor Nouws
Hi Gianpiero, Gianpiero Napoli wrote (29-1-2009 20:03) I need to get a reference to the current spreadsheet without create a new one. I only work in OOo basic, and there it simply is ThisComponent I'm sure the documentation will lead you to the Java example soon.

Re: [dev] How to get the current spreadsheet

2009-01-30 Thread Mathias Bauer
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,

[dev] How to get the current spreadsheet

2009-01-29 Thread Gianpiero Napoli
Hi All, I need to get a reference to the current spreadsheet without create a new one. Right now i'm creating a new _blank ical document: following there is the code i'm using XMultiComponentFactory xRemoteServiceManager = m_xContext.getServiceManager(); Object desktop=null; try { desktop