MailMerge settings

Paolo Mantovani <[email protected]> Wed, 11 May 2011 18:33:24 +0200
Newsgroups gmane.comp.openoffice.devel.api
Message-ID <[email protected]>
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