Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Avoiding blank space when sub report not applicable

edited November 2006 in General
Hi,

We have a Payroll product developed using Delphi 5.0. For Payslip Generation
purpose we are using Report Builder 6.03.

Payslip RTM file is generated dynamically. Payslip RTM File grouping is
given based on Empcode. (We get Group Header and Group Footer details for
EmpCode).

We have two different sub reports for Leave and Loan Details that are placed
in Group footer Band - first Loan details, then Leave Details. When both
Leave and Loan Details are there, report displays properly.

But when some employees do not have any loan info, we would not like to
display anything; but in this case blank space comes.

Any solution to avoid blank space when a sub report is not applicable?

With regards

Sangam

Comments

  • edited November 2006
    Hi Sangam,

    Try toggling the visibility of the subreport if it does not have any data
    associated with it. If this does not solve the problem, try also
    disconnecting the datapipeline from the subreport. Don't forget to
    reconnect it when you are done with the report however.

    Subreport.DataPipeline := nil;

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.