Frank Schönheit - Sun Microsystems Germany wrote:
Hi Drew,
Did not check your macros, but I suppose you did not do a "dispose" on
the connection you got from the data source?
I'll keep it short.
Added thisDdatabaseDocument.CurrentController.connect() to the
Init.OnLoad macro.
Made a quick wrapper macro
function OpenDBForm( aFormName as string ) as object
OpenDBForm = ThisDatabaseDocument.CurrentController.loadComponent( _
com.sun.star.sdb.application.DatabaseObject.FORM, _
aformName, false )
end function
Then did a simple find/replace to use this OpenDBForm vs my old
OpenDBDocument.
Voila! Nothing like doing things the right way.
I can now load that file multiple times in the same OO.o session and the
Open Document event fires each time. (Assuming, of course, I close the
actual odb file each time)
Thanks much,
Drew
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]