Hi All,
I'm fairly new to the OOo api, and therefor also to this list, so please
bear with me a little...
I'm trying to implement a mailmerge using java. (using OOo 2.3 and SDK 2.3)
I'm able to startup OOo and the template gets loaded OK. But then I'm
trying to create a datasource from a cvs file and that's where I get lost.
The steps I'm taking:
- create a XSingleServiceFactory for the service
"com.sun.star.sdb.DatabaseContext" (which seems to be deprecated but i
couldn't find another method to create a DatabaseContext service)
- create a DataSource instance using the factory
- get the XPropertySet interface from the dataSource
- set the URL and Info properties
- get the XNamingService interface from the factory
- try to register the datasource using the NamingService
then when i try to register the datasource it tells me i need to store
it first using the XStorable Interface. The problem is however taht i
cant get the XStorable interface from the datasource. It doesn't seem to
implement it! Also when i look at the defined intefaces in the
developers guide for the DatabaseContext and Datasource services
(13.2.2) and the UML on p.895 i don't see the XStorable interface as
implemented.
Is there something here i missed? Any pointers on how to store the
datasource in OOo 2.3 are greatly appreciated...
greets & TIA,
Willem
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]