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 dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help