Page 1 of 1

programmatically set color of PDF output

PostPosted: Thu Apr 07, 2016 6:00 pm
by wes.s.grayson
I use the onRender function to change the color of certain elements on my form (table view) such as "due_date". If the due_date's value is 2015, it shows as red in the table for expired. When I print this form to a PDF using the code below, none of the colors print. Does onRender only work on forms, not for output? If so, what is the best way to programmatically set the color for my report based on the values of each record? I don't have Jasper or any other reporting engine like that.

Code: Select all
//print this form
   //launch PDF file in Adobe Reader
   application.executeProgram('rundll32', 'url.dll,FileProtocolHandler', 'c:/temp/report.pdf');