Suppress Null Date to display
Hi Alex
I have downloaded the trial version and doing a compare with XtraReport, crystal report for my company ERP, your fastreport by far the best I tried, but I have this problem, why when the date is null, it always print 01-Jan-01?, anyway can I supress it to print BLANK or '-'?
I have tried using the Beforeprint evernt to check for DBNull, but it does not work...
Any help?
Dr. Lee
I have downloaded the trial version and doing a compare with XtraReport, crystal report for my company ERP, your fastreport by far the best I tried, but I have this problem, why when the date is null, it always print 01-Jan-01?, anyway can I supress it to print BLANK or '-'?
I have tried using the Beforeprint evernt to check for DBNull, but it does not work...
Any help?
Dr. Lee
Comments
There is a "NullValue" property you can set to display a specific value when the data is null.
I have Date field. On that field is assigned format for date, but when column is null, it will show "01.01.0001".
If I insert something into NullValue, it will always stay same.
I dont use BeforeEvent even AfterEvent.
I use only NullValue property on object, ant this object has format set to Date.
Set TextObject's HideZeros property to true.
Also: you can uncheck Report > Options > General tab > Convert null values.
As datetime is numeric, this setting will convert a Null datetime to zero !
TRY THIS