Skip to Content
Former Member
Dec 07, 2009 at 09:49 PM

Exception in formula '{@fontColour}' error


A report was created in XI that uses font color changes in 2 places. One is at a field level and one on the section to alternate the colors on the displayed report. Both work properly when you run it directly in crystal reports but when you import it into java and display it via a jsp page, it works on the first page and gives the above error on the 2nd page. Please tell me what I am coding incorrectly. Below is my code.

format Field: Font color
if {Command.ALERT} = UpperCase("y") then crRed else DefaultAttribute; 

format Section Background Color
if remainder(RecordNumber,2) = 0 then crSilver else DefaultAttribute;