Hi Andrew,

> How can I load a Base document,

com.sun.star.sdb.DatabaseContext.loadComponentFromURL( ... )

> choose a form, and then cause one of the forms to be opened?

oDatabaseDocument::XFormsSupplier.getForms().loadComponentFromURL(
  <relative_form_url> )

<relative_form_url> boils down to the name of the form, or something
like "container/foo/bar/form", if you use hierarchic forms.

> I know how to do everything but cause a particular form to be displayed. 
> The point, however, is that I am not starting with the form in an open 
> state. Eventually, I hope to figure out how to build a form entirely 
> using a macro :-)

Uhm - too lazy to type this here

look for the method "newForm" in
http://dba.openoffice.org/source/browse/dba/dbaccess/source/ui/misc/linkeddocuments.cxx?rev=1.12&content-type=text/vnd.viewcvs-markup,
and translate it to Basic or Java :)

(if this doesn't help, then please come back and I'll try a Basic snippet)

Alternatively, steal from the FormWizard :)

Ciao
Frank

-- 
- Frank Sch�nheit, Software Engineer         [EMAIL PROTECTED] -
- Sun Microsystems, Inc.                           http://www.sun.com -
- OpenOffice.org Database Access            http://dba.openoffice.org -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to