How can I make an object print a yellow color on print out?

Avatar

Avatar

lpianwi

Avatar

lpianwi

lpianwi

13-05-2015


Hi All,

I have a form that I am currently working on. The check boxes are grey color on screen, but should print yellow color on printout.

I wrote the following script on the Preprint event.

form1.Page2.Marginalchbx.fillColor = "255, 255, 0";

This is not working, and I do not know why it is not. Is there someone out there that can helpout. I greatly appreciate it.

Thanks

Tammy

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar

TB17

Avatar

TB17

TB17

15-05-2015

If you want "just" the check box area filed with yellow (vs the entire object) use the following script on the prePrint:

this.ui.oneOfChild.border.fill.color.value = "255,255,0";

On the postPrint event, use the same script but change the RGB color codes ("#,#,#") to represent grey thus restoring the check box to the original state.

Avatar

Avatar

radzmar

MVP

Avatar

radzmar

MVP

radzmar
MVP

14-05-2015

Hi,


try


this.border.fill.color.value = "255,255,0";

in the buttons prePrint event.