Hello,
I wonder if it is possible to show an error message in the report if the datasource is empty.
Thanks!
Showing error message if the datasource is empty
Re: Showing error message if the datasource is empty
Hello,
As a way you can use the following code in BeforePrint event:
Thank you.
As a way you can use the following code in BeforePrint event:
Code: Select all
if (DataSourceName.Count == 0)
MessageBox.Show("Data is Empty");
Re: Showing error message if the datasource is empty
Thank you for the quick response. I will try it out.
Re: Showing error message if the datasource is empty
Hello,
Let us know if you need any additional help.
Let us know if you need any additional help.