Page 1 of 1

Validation error message

Posted: Thu Jun 14, 2012 8:14 am
by becomex_jle
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

Posted: Fri Jun 15, 2012 5:31 am
by Alex K.
Hello,

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!")
Thank you.

Validation error message

Posted: Tue Jun 19, 2012 2:07 pm
by becomex_jle
Aleksey wrote:Hello,

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!")
Thank you.
Problem solved.

Thank You.

Validation error message

Posted: Wed Jun 20, 2012 1:08 am
by Andrew
Hello,

Great!

Thank you for letting us know.