The page in the viewer is set to the top edge in continuous view mode

Posted by: dariusz.antoniak on 18 February 2020, 7:53 pm EST

  • Posted 18 February 2020, 7:53 pm EST - Updated 30 September 2022, 8:20 am EST

    Hello,

    Please consider below scenario:

    1. There is opened AR Viewer with report, which contains two pages: 1 and 2. Viewer is open in continuous view mode.
    2. After opening viewer page 1 looks like selected - a blue border is visible around this page.
    3. We can scroll down report with mouse to the bottom of page 2, until the top edge of the page 2 will be no longer visible. This page is still not selected/choosen - there is no blue border around.
    4. After clicking anywhere on page 2 this page moves in viewer window in such way that the top edge of the page is aligned with the edge of the viewer. Looks like page is selected - there is blue border around now.
    5. We could scroll down page 2 until bottom of this page will be visible. Page 2 is still selected.
    6. After clicking again on page 2 page stays in the same place.

    So the problem here for me is how Active Reports behave in point 4, this is unexpected for me, because I going to edit text located on page 2 with custom RTF editor, which is an overlay on an existing report view. But when this editor is showed after click on specified text - Active Reports treats it like clicking on a page and page moves up with the content below and there is a discrepancy between the report view and what I want to edit on it. My RTF edit control doesn’t expect the page to be moved at all.

    This concern only continuous view mode, for single page there is no such problem. But using single page instead is not any workaround for me. This have to be continuous view.

    Is there any way for blocking positioning page after click on it, when it’s not currently selected yet ? Any property for viewer object, which could be set ? I have tried to read PageOffset property for viewer object, for obtaining location of the page in the viewer, but for continuous view is set to 0 every time. Maybe is there any other way for indicate that the page has been aligned to it’s top edge (or will be aligned ?). With debugging my code looks like it happens much, much later, before my custom viewer_Show event could do or calculate anything.

    Please look at attached animation with scenario and screenshot with unexpected behaviour, which I want to fix.

  • Posted 18 February 2020, 8:55 pm EST

    I forgot to mention: I’m using Active Reports 11.2.10750

  • Posted 18 February 2020, 9:07 pm EST

    Hello,

    I have escalated the issue to our development team(278454) and will inform you once I get any reply from them, Sorry for the inconvenience caused to you.

    Thanks,

    Mohit

  • Posted 18 February 2020, 11:47 pm EST

    Hello,

    As I see your last response, AR11 is out of development mode now and we don’t support it. The mentioned issue will also be fixed in the latest version only if it is feasible. I suggest you to upgrade to our latest version i.e AR14.

    For more information, you can refer the following link:

    https://www.grapecity.com/activereports

    https://www.grapecity.com/activereports/docs/v14/online/overview.html

    Also, you can download the trial version of AR14 from the following link:

    https://www.grapecity.com/download/activereports

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels