Speaking of "PROPERTY ... PRINT":
I have a form with a "Print" button to send the image to the printer
(BTW, customer loves that function!).
The form color is 'ScrollBar' that shows as grey on their laser printer.
What I'm trying to do in the Print EEP below is to change the form color to white just before printing (that works fine) and then change the form
color back to the ScrollBar color that I obtain in the GETPROPERTY - see
EEP below. The problem is that the form color turns out to be a dark
green rather than the original ScrollBar.


I've tried defining vFormColor (in the command file before the form is
opened) as both text and integer (it has a text value of -2147483648)
and tried with and without quotes around the  .vFormColor in the
PROPERTY command.

What am I missing? Are the form colors limited to the named colors listed in the RDOCS PROPERTY command?

TIA,
Doug

--Custom EEP to print a form

--Get current form color
GETPROPERTY RBASE_FORM COLOR 'vFormColor'

--Change form color to white and print the form
PROPERTY RBASE_FORM COLOR 'white'
PROPERTY RBASE_FORM PRINT 'PRINTER'

--Restore form color to original color
PROPERTY RBASE_FORM COLOR '.vFormColor'

RETURN



Reply via email to