This is a migrated thread and some comments may be shown as answers.

no data message on reports generated with the standalone designer

1 Answer 153 Views
Report Designer (standalone)
This is a migrated thread and some comments may be shown as answers.
erwin
Top achievements
Rank 1
Veteran
Iron
erwin asked on 29 Oct 2012, 09:57 PM
Hello,

When using the standalone designer with parametrized Reports, it would in some cases be convenient if I could define a "No Data" message. Currently, when the report is empty, it just shows the first page, which is generally OK.

Trouble begins when I use Functions like Iif(Len(Fields.MyField)>0,"/","")) to concatenate Text. These will throw error messages if no rows are returned by the datasource. I could probably code additional conditions explicitly testing for NULL etc. But this can be a bit cumbersome.
What are your strategies to prevent ugly error messages thrown when a report returns no data?

Regards
Erwin

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 01 Nov 2012, 01:37 PM
Hello Erwin,

Generally the error message purpose is to show where a problem may exist and to handle the errors according your design requirements. Thus if you expect null values our suggestion is to use the IsNull function to check for null and handle it accordingly.

About displaying no data message, you can find a solution with sample project in the following thread: No data message for empty data-source.

Greetings,
Peter
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
Report Designer (standalone)
Asked by
erwin
Top achievements
Rank 1
Veteran
Iron
Answers by
Peter
Telerik team
Share this question
or