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.
Anyone tell me (perhaps in general terms) how I might go about this.
Thanks.
In the BeforePrint Event of your Detail band put somthing like this.
if MyTable.FieldByName('MyCon ditionFiel d').As(som e var type) = SomeValue then
QRLabel1.Caption := 'Blank'
else
QRLabel.Caption := MyTable.FieldByName('MyDat aField').A sString
if MyTable.FieldByName('MyCon
QRLabel1.Caption := 'Blank'
else
QRLabel.Caption := MyTable.FieldByName('MyDat
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
use the event onprint of the field you want to manipulate. Maybe you must use a QRLabel-Component to do this.
meikl