Blank pages in Flex report in WinForms application

Posted by: alhad on 2 October 2019, 6:34 am EST

    • Post Options:
    • Link

    Posted 2 October 2019, 6:34 am EST

    Hi,

    I am getting blank pages in my report when I add an image field for an image to be shown in the report (See HistoryChartCtl in ParamNameGroup_Footer). The image may or maynot be there for each record. I am using an XSD file for the data. My FlexReport version is 4.0.20182.314. I am attaching the report file and xsd file for reference. Any help will be greatly appreciated.

    Thanks in advance,

    Regards,

    AlhadLabTestReport.zip

  • Posted 3 October 2019, 12:56 am EST

    Hello Alhad,

    Please refer the attached modified report wherein the script under ParamNameGroup_Footer.OnFormat is commented out.

    If you simply set the AutoHeight and AutoWidth properties of the HistoryChartCtl field to CanGrow, it’ll adjust on the page when the image exists in the control. Here, no extra page comes up, which earlier came due to the fixed settings of the footer and the HistoryChartCtl field.

    The fields and sections are highlighted in the report for the sake of clarity. You may remove them once you have observed the changes.

    Regards,

    Esha

    LabTestReport_Mod.zip

  • Posted 7 October 2019, 4:52 am EST

    Hello Esha,

    The problem is not resolved. Now the report does not render. I get a “Object reference not set to an instance of an object” error. I am using the same XSD file I had attached to my post. Can you please check?

    Thanks

    Alhad

  • Posted 7 October 2019, 7:24 am EST

    Hello Alhad,

    Could you please share a small video showing the issue?

    I can preview the report properly at my end and hence, I would need to see what exactly causes the issue and where.

    Thanks,

    Esha

  • Posted 7 October 2019, 1:06 pm EST

    Hello Esha,

    Attaching a small video showing the issue. I have uncommented lines HistoryChartCtl.Visible = False/True in the script in ParamNameGroup_Footer.OnFormat. If I comment those lines, then only the error message is shown.

    Thanks,

    Alhad

    ScreenCaptureProject4.zip

  • Posted 9 October 2019, 3:27 am EST

    Hello Alhad,

    The error is observed when the said script lines are uncommented. However, that is not what we want to do, in your case. With the script lines commented, we do not observe the blank page and all the data is rendered as well. Please inform if the result does not meet the requirement. Refer the attached gif showing the result.

    Regarding the error: it is not observed in the latest versions of FlexReportDesigner. You can test it from the builds: http://prerelease.componentone.com/dotnet40/c1winforms/2019-t2/C1WinForms.4_4.0.20192.375.zip

    Regards,

    Esha

    Results.zip

  • Posted 10 October 2019, 6:42 am EST

    Thanks Esha. Will check with the latest build available to me and let you know the result.

    Regards,

    Alhad

Need extra support?

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

Learn More

Forum Channels