FlexReport printing data depending on there values in Pageheader and Detail

Posted by: saidnai on 18 August 2024, 4:33 am EST

  • Posted 18 August 2024, 4:33 am EST

    Hi,

    Following issue is, i have a report, where i have to show 16 fields in the detail including text filed in the Pageheader. Sometimes not all 16 fields have a value and must not be shown as empty fields with the border or text in pageheader…

    The shown fields could be 1 or 2 or 3 or 4 or 5, etc. It is depending on how many values the user has input.

    Best regards

    Said

  • Posted 18 August 2024, 4:35 am EST - Updated 18 August 2024, 4:42 am EST

    attached a sample.

    Best regards

    Said

  • Posted 18 August 2024, 4:39 am EST

    attached a sample.

    Best regards

  • Posted 18 August 2024, 5:47 am EST

    again

    rpt.zip

  • Posted 19 August 2024, 9:02 am EST

    Hello,

    We apologize for the inconvenience, but this use case is not possible in FlexReport due to the flow of the rendering of the sections:

    Format - PageHeader
    Print - PageHeader
    Format - Detail
    Print - Detail

    In FlexReport, The PageHeader section is first rendered and printed, followed by the Detail section. In your scenario, you intend to hide fields in PageHeader if there is no data present in the field located in the Detail section. When rendering control, renders fields in Detail section, all of the fields in PageHeader section are already rendered and printed so we cannot hide them or edit their values.

    Regards,

    Uttkarsh.

  • Posted 19 August 2024, 10:59 pm EST

    Dear Uttkarsh,

    is it possible in Flexreport to use 2 or more sub reports and show the target one and hide the others over variable = 1 or 2 or 3, etc.?

    Best regards

    Said

  • Posted 20 August 2024, 8:15 am EST

    Hello Said,

    We created a sample report with three sub-reports. Then in the Detail.OnFormat VBScript, we set the Visible property of the SubReport field as per the “Report” data field. Please refer to the attached FlexReport and let us know if it fulfills your requirements. (see HideSubReport.zip)

    Regards,

    Uttkarsh.

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels