Page 1 of 1

Headers of the column????

Posted: Fri Oct 10, 2008 12:49 am
by abhi0410
Hi,
i have designed the report.... and i have used the "Header" control to display the header of columns and i have placed the "DataSource" below that....

Now the problem is when Data is available then the Headers are visilble and no data is avilable while creating the report...the Headers are not visible...

Can any one tell me how to solve this problem?????
+
I want to display a msg that "No Data avaiable to Create Report".

I am using StiPreviewControl to display the Report...

Thanks....

Headers of the column????

Posted: Fri Oct 10, 2008 7:59 am
by Edward
Hello.

1) Please set PrintIfDetailEmpty property of the master band in true (if it is a Master-detail relationship). For the Header band the name of the property is 'PrinIfEmpty'.

2) In the BeginRenderEvent of the First page of the report, please add the following code:

Code: Select all

if (MyDataSource.IsEmpty)
{
	MessageBox.Show("The DataSource 'MyDataSource' is empty");
}
Thank you.