Page 1 of 1
Showing error message if the datasource is empty
Posted: Mon Sep 16, 2013 9:41 pm
by sasham
Hello,
I wonder if it is possible to show an error message in the report if the datasource is empty.
Thanks!
Re: Showing error message if the datasource is empty
Posted: Tue Sep 17, 2013 6:22 am
by Alex K.
Hello,
As a way you can use the following code in BeforePrint event:
Code: Select all
if (DataSourceName.Count == 0)
MessageBox.Show("Data is Empty");
Thank you.
Re: Showing error message if the datasource is empty
Posted: Tue Sep 17, 2013 5:00 pm
by sasham
Thank you for the quick response. I will try it out.
Re: Showing error message if the datasource is empty
Posted: Wed Sep 18, 2013 11:16 am
by Alex K.
Hello,
Let us know if you need any additional help.