Display Progress Bar via events fired from AR Viewer

Posted by: ccampbell on 14 August 2019, 4:44 pm EST

    • Post Options:
    • Link

    Posted 14 August 2019, 4:44 pm EST

    Hi,

    In AR 13, when running section reports (Winforms VS 2017), if there are many many pages to the report then the user sees the default .gif that’s rendered in the viewer window until the report completes. That’s great. However, the user has no idea how long it will actually take the report to render. I’d like to be able to fire events from within the viewer control that can indicate where the report is in the rendering process. I would then use this information to drive a progress bar on the viewer’s form status bar. I’m not sure exactly how it would play out as the viewer probably has no idea how many pages will ultimately be rendered until after it’s finished. So perhaps as the report cycles through each detail row, an event can be raised and passed through the viewer control to the parent form. It’s a thought anyway.

    Perhaps there is already an easier way for doing this? Looking for suggestions.

    Thanks,

    Chris

  • Posted 19 August 2019, 1:41 am EST

    Hello Chris,

    A13 supports the feature that Pages are displayed as they are loaded, without need to wait for loading of the whole report. Please refer to the attached video.

    Are you seeing the loading gif until the report is completely rendered?

    Also, you can refer to the SectionReports event so that you can know the execution of the report.

    https://help.grapecity.com/activereports/webhelp/AR13/webframe.html#ReportEvents.html

    Please feel free to revert if you have any question regarding this.

    Thanks,

    2019-08-19 at 11-11-04.zip

  • Posted 19 August 2019, 1:27 pm EST

    I do see the .gif and only the .gif as the report executes. I cannot find a setting on the viewer control to enable the pages to be displayed as they are being rendered.

    Also, is it possible to reference the aforementioned events through the viewer control? Such as through the arViewer.document object or the Action event?

    Thanks.

  • Posted 20 August 2019, 1:15 am EST

    Hello,

    I cannot find a setting on the viewer control to enable the pages to be displayed as they are being rendered.

    There is no property available for this. This is the default behavior of the Viewer. Could you please share the report with us along with the database so that I can replicate the issue at my end. Also, Please share the following thing;

    1: Total Page count of the Report

    2: Total time to render

    3: Is there any subreport and images used in the report?

    I am assuming that you are using the WinViewer with AR13. Request to please confirm if my understanding is correct.

    Is it possible to reference the aforementioned events through the viewer control?

    Sorry, it is not possible to reference the aforementioned events through the viewer control. As these events belong to SectionReport, not to SectionDocument.

    Viewer has the “LoadCompleted” event which fire when the report is completely rendered.

    Viewer.Document.InProgress property which tells the user the report is currently loading.

    Viewer.Document.StateChanged event which fires when the report starts rendering and when the report is completely rendered.

    Hope it helps.

    Thanks.

  • Posted 23 August 2019, 11:23 am EST

    Thank you.

Need extra support?

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

Learn More

Forum Channels