freereport: How I print NULL instead ZERO at runtime
in FreeReport
Hello,
I need to print NULL instead of the value ZERO at runtime for several fields, about 900, within the report.
I thought of using the OnDrawObject event at runtime, but I don't understand which TfrView property to query to replace the value from ZERO to NULL. Example : if View.???? = 0.00 then View.??? := NULL.
Can anyone suggest the most suitable method without having to intervene on every field of the report?
Thank you.
Comments
Use IIF function
[IIF([YourDatasetName."YourFieldName"] = 0, 'NULL', [YourDatasetName."YourFieldName"])]
I have about 900 memos in a report. This feature makes the report unmanageable.
Thank You.