Dynamic Page Eject

Posted by: dfields on 3 June 2019, 3:31 am EST

    • Post Options:
    • Link

    Posted 3 June 2019, 3:31 am EST

    I need to provide a page eject after a group footer dynamically based on a parameter passed into the report.

    I have tried placing a text box in the group footer which calls a public function that issues Me.EjectPage.

    This is a V12 banded RDL report. Unfortunately, this reliably causes the VB 6 application calling the report to crash.

    Any suggestions? Thanks.

  • Posted 3 June 2019, 7:21 pm EST

    Hello,

    In RDL Report, controls are growing based on the contents present in them. One control can go to the next Page if it contains more content.

    Thus there is no functionality to access the Pages present in RDL Report. Since we are not able to access the page, ejection at runtime is not possible. Further, no changes can be made in the Report once it has been rendered.

    Also. You cannot use the outer function inside the report element.

    However, you can hide the control at runtime based on the value. You can use the expression in the “Visible” property of the control.

    Could you please explain the use case of your application so that I will help you accordingly.

    Thanks.

  • Posted 20 June 2019, 1:56 am EST

    The use case, which I could support in Crystal Reports, is this. A report can be run, at the user’s discretion, as one continuous report, or as a series of reports each on it’s own page. This allows management at the corporate level to run a report for its’ own use (continuous), or to hand out to store managers with each page specific to the store receiving the report.

  • Posted 20 June 2019, 11:20 pm EST

    Hello,

    Could you please confirm that you want to generate the report as per specifc user. You can use the parameter in the report to display specific user data.

    If my understanding is wrong could you please explain in detail.

    Also, what is the purpose to use “Me.EjectPage.”?

    Thanks,

  • Posted 24 June 2019, 1:55 am EST

    I simply want to be able to invoke a page eject after a group footer prints IF a parameter is set to a certain value. As an example, if Parameters!DO_PAGE_EJECT.Value = “Y” then . . . eject the page.

  • Posted 24 June 2019, 8:24 pm EST

    Hello,

    Sorry to mention this is not possible through RDL report. AS said earlier, thus there is no functionality to access the Pages present in RDL Report. Since we are not able to access the page, ejection at runtime is not possible. Further, no changes can be made in the Report once it has been rendered.

    Thanks.

Need extra support?

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

Learn More

Forum Channels