Hi,
I am trying to create Writer document (.sxw) based on DBF by Office Automation in VFP.
I have prepared function to change value of chceckbox in one of .prg files:
Code:
FUNCTION zmienBox(nazwa,wart)
form1 = this.doc.getDrawPage().forms().getByIndex(0)
nazwa= m.form1.getByName("nazwa")
nazwa.state = wart
ENDFUNC
where "nazwa" is the name of checkbox and "wart" is its value (0 or 1).
Then, I have prepared .dat File to manage checkbox value changing with following code:
Code:
zmienBox(rsa,1)
("rsa" is a name of one of checkboxes)
While processing ".odt" file I get message:
Variable 'RSA' is not found
Does anybody know how to make it work?
sfetr
I am trying to create Writer document (.sxw) based on DBF by Office Automation in VFP.
I have prepared function to change value of chceckbox in one of .prg files:
Code:
FUNCTION zmienBox(nazwa,wart)
form1 = this.doc.getDrawPage().forms().getByIndex(0)
nazwa= m.form1.getByName("nazwa")
nazwa.state = wart
ENDFUNC
where "nazwa" is the name of checkbox and "wart" is its value (0 or 1).
Then, I have prepared .dat File to manage checkbox value changing with following code:
Code:
zmienBox(rsa,1)
("rsa" is a name of one of checkboxes)
While processing ".odt" file I get message:
Variable 'RSA' is not found
Does anybody know how to make it work?
sfetr