Hallo Bart,

Bart Friederichs wrote (15-10-2008 13:36)
I try to simply access a form element in a spreadsheet. The help file /
webpages give something like this:

   form =ThisComponent.DrawPages(0).Forms.getByIndex(0)

Something as the next works:
  oSheet = ThisComponent.Sheets(0)
  oControl = ThisComponent.Sheets(0).DrawPage.Forms.
               getByIndex(0).getByName("TextBox")
  s = oControl.Text

and then, I should be able to get the form element from the form variable.

This doesn't work however. The Forms attribute in the DrawPages is
empty. How can I access simple form elements I put on my sheet (using
the Form controls toolbar) ?

There is the button Design mode on the toolbar. That should help.

vr. groet,
Cor

--
"The Year of 3" -2008- "Het jaar van 3"

Cor Nouws - Arnhem - Netherlands
  > marketing contact - http://nl.OpenOffice.org
  > Zeker van OpenOffice.org - www.nouenoff.nl


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

Reply via email to