Re: MailMerge settings
Fernand Vanrie <[email protected]> Wed, 11 May 2011 19:52:20 +0200
| Newsgroups | gmane.comp.openoffice.devel.api |
|---|---|
| Message-ID | <[email protected]> |
Paolo ,
I think you need "refresh" your textfields,
when needed i can send you some code tomorrow
Greetz
Fernand
> Hallo,
>
> I need to change (via API) the database bound to a given document.
>
> In practice I need to perform via API the same operation that you
> normally do via the menu Modify->Change Database.
>
> I tried with:
>
> oSet = oDoc.createInstance("com.sun.star.text.DocumentSettings")
> oSet.CurrentDatabaseDataSource = "newsource"
> oSet.CurrentDatabaseCommandType = com.sun.star.sdb.CommandType.TABLE
> oSet.CurrentDatabaseCommand = "newtable"
>
> But this does not affect the database fieldmasters in the document,
> that are still pointing to the old datasource.
>
> It seems that I'm missing something.
> Any help?
>
> thank you
> Paolo Mantovani
>
--
-----------------------------------------------------------------
To unsubscribe send email to [email protected]
For additional commands send email to [email protected]
with Subject: help