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????
Headers of the column????
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:
Thank you.
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");
}