Good morning, I have a report where there are two DataBands where one will always be filled and the other may sometimes null. For example: I have a DataBand of "expenses" and other "items", the items Datasource always always return data, but not the expense. Is there any possibility to play a MessageBox on the screen saying that the DataBand of "expenses" has no expenses or it appears in the report itself?
Thank You.
Validation error message
-
- Posts: 39
- Joined: Fri Aug 26, 2011 8:14 am
- Location: Brazil
Validation error message
Hello,
As a way, you can use the following code in BeginRender event of report:
Thank you.
As a way, you can use the following code in BeginRender event of report:
Code: Select all
DataSourceName.Connect();
if (DataSourceName.DataTable.Rows.Count == 0)
MessageBox.Show("Empty!")
-
- Posts: 39
- Joined: Fri Aug 26, 2011 8:14 am
- Location: Brazil
Validation error message
Problem solved.Aleksey wrote:Hello,
As a way, you can use the following code in BeginRender event of report:Thank you.Code: Select all
DataSourceName.Connect(); if (DataSourceName.DataTable.Rows.Count == 0) MessageBox.Show("Empty!")
Thank You.
Validation error message
Hello,
Great!
Thank you for letting us know.
Great!
Thank you for letting us know.