Mega Code Archive

 
Categories / Delphi / ADO Database
 

Printing calculated text

Question: I have a calculated table field and it has line breaks in the text and those line breaks don't print. Answer: Delphi defines calculated table text fields as TStringfield and QuickReport handles that type of field differently than it handles actual memo fields. To output a calculated text field, use a QRMemo component and set QRMemo.Lines.Text to the value of the calculated field at runtime.