Print if Detail Empty =true is not working

Stimulsoft Reports.NET discussion
Post Reply
MARIMUTHU K
Posts: 101
Joined: Wed Jul 26, 2006 8:03 am
Location: CHENNAI-TN, INDIA

Print if Detail Empty =true is not working

Post 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,
Marimuthu K
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Print if Detail Empty =true is not working

Post by Edward »

Thank you for the sample mdc file of the rendered report. Please send a report template (mrt) file as well.

Thank you.
MARIMUTHU K
Posts: 101
Joined: Wed Jul 26, 2006 8:03 am
Location: CHENNAI-TN, INDIA

Print if Detail Empty =true is not working

Post by MARIMUTHU K »

I sent mrt and sample xml file thr' mail

Thanks
Marimuthu K
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

Print if Detail Empty =true is not working

Post 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.
Post Reply