Page 1 of 1

Print if Detail Empty =true is not working

Posted: Fri Apr 04, 2008 1:41 am
by MARIMUTHU K
Hi Edward,

We are using stimulsoft 2008.1.146.0 ASP.Net 2.0

We did following steps:
1. Assign 2 dataTable(Table, Table1) to Sample.mrt
2. Table is used Heading display purpose
3. Table1 is assigned DataBand and Render
4. If Row count > 0 then Report rendered properly, But our case
5. If Row count =0 || Row count <0 then display Empty DataBand with Border.
6. We set Print if Detail Empty =true in DataBand and HeaderBand
7. But Not display EmptyDetails.
8. How it solve it.


Its urgent Help.

Please kindly provide solution.


Thanks in Advance,

Print if Detail Empty =true is not working

Posted: Fri Apr 04, 2008 3:17 am
by Edward
Thank you for the sample mdc file of the rendered report. Please send a report template (mrt) file as well.

Thank you.

Print if Detail Empty =true is not working

Posted: Mon Apr 07, 2008 8:21 am
by MARIMUTHU K
I sent mrt and sample xml file thr' mail

Thanks

Print if Detail Empty =true is not working

Posted: Mon Apr 07, 2008 4:26 pm
by Edward
Please make the following modifications in your code:

In the BeforePrintEvent of the Page add the following code:

Code: Select all

if (Table1.Count == 0)
{
Data1.CountData = 1;
}
Also in Text25.GetValueEvent you need to slightly change your code:

Code: Select all

if((Table1.clsrm_nm=="") ||(Table1["clsrm_nm"] is System.Nullable))
{
e.Value=" Unassigned ";
}
else
{
e.Value=Table1.clsrm_nm;
}
Please let us know if any help is required.

Thank you.