Thanks Frank. It had not occured to me to tyr to load the form as a component..... Awesome!

Frank Sch�nheit - Sun Microsystems, Inc. wrote:

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




-- Andrew Pitonyak My Macro Document: http://www.pitonyak.org/AndrewMacro.sxw My Macro Book: http://www.hentzenwerke.com/catalog/oome.htm Free Info: http://www.pitonyak.org/oo.php


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

Reply via email to