Link to home
Start Free TrialLog in
Avatar of cavalry
cavalry

asked on

QReports ...

I want to print the contents of a table in Qreports, however I want to print certain record fields as "blank" depending on the value of other fields in the same record.

Anyone tell me (perhaps in general terms) how I might go about this.

Thanks.
Avatar of kretzschmar
kretzschmar
Flag of Germany image

hi cavalry,

use the event onprint of the field you want to manipulate. Maybe you must use a QRLabel-Component to do this.

meikl
Avatar of Greedy
Greedy

In the BeforePrint Event of your Detail band put somthing like this.

if MyTable.FieldByName('MyConditionField').As(some var type) = SomeValue then
  QRLabel1.Caption := 'Blank'
else
  QRLabel.Caption := MyTable.FieldByName('MyDataField').AsString


ASKER CERTIFIED SOLUTION
Avatar of glabax
glabax

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial