I've created two "Text Boxes" in a
form in a writer document.
I can iterate over them like this grabbing the text as I go
oDoc = ThisComponent
oDrawPage = oDoc.DrawPage
oForm = oDrawPage.Forms.GetByIndex(0)
For i = 0 To oForm.getCount()-1
x.getName() & " : " & x.Text
Does this help in anyway?
On Wednesday 08 May 2013 01:50:02 Vieri wrote:
--- On Tue, 5/7/13, Vieri <firstname.lastname@example.org>
--- On Mon, 5/6/13, Andrew Douglas
On 05/06/2013 05:21 AM, Vieri wrote:
I have an odt writer document with 2
(added with the form designer toolbar). I
into one of the fields. I copy/pasted a macro
to see if
could grab the text within the input field
any luck. This is the test macro in Basic:
If Not IsNull(vEnum) Then
If I manually run this macro I get the
What am I doing wrong?
What is the correct way of getting the
I grabbed these two routines from my test
running them first....
Thanks for the reply but I'm still having
I'm either way off-course, misusing LO or making a
I copied your macros to my odt document.
I then did a "tools, macros, run macro..." and
Subs I copied.
If I run EnumerateTextFields then it yields the
message box (nothing else).
If I run DisplayMasterFields then it yields the
===Text Field Masters===
My odt document has 2 input fields in a form.
By the way, if I place a button within my form and
the "Mouse button pressed" to launch, say,
EnumerateTextFields then I get the following error
"LibreOffice 18.104.22.168 BASIC runtime error. '423'
getTextFields" and it points at the line:
I'm stuck on something that should be quite
I'm attaching my odt file hoping that someone can
what novice mistake I'm making.
Trying to attach the file again but it seems that the
mailing list strips it
To unsubscribe e-mail to: email@example.com
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and
cannot be deleted