no data message on reports generated with the standalone designer

2 posts, 0 answers
  1. erwin
    erwin avatar
    358 posts
    Member since:
    Dec 2006

    Posted 29 Oct 2012 Link to this post

    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
  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 01 Nov 2012 Link to this post

    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!

  3. DevCraft banner
Back to Top