Essa é uma revisão anterior do documento!


Formatador de Relatório - ReportBuilder (Resumo do guia do desenvolvedor)


The event handler below is assigned to the OnPrint event of a DBText component. When the component prints, the current value of the PRICE_CHG field is checked. If this value is less than zero, the component prints in red; otherwise, the component prints in black.

It is important to note that the font color is set to the appropriate color every time the component prints. If the code below simply set the font color to red when the value was negative, then the first negative value would print in red and all subsequent values would print in red, regardless of the sign of the value. When setting report component properties, remember to handle all cases, as components remain in any state to which they are set.