ActiveReports.v12 Viewer.Sidebar default display

Posted by: john.burke on 26 January 2018, 11:41 am EST

    • Post Options:
    • Link

    Posted 26 January 2018, 11:41 am EST

    I would like the Document Map (Bookmarks) to display as the default Sidebar when the Viewer is opened.

    Currently the Thumbnails are displayed by default.

    My report has Bookmarks, and they are displayed if you navigate to the Document Map panel in the Sidebar, but the Thumbnails display is useless for large reports.

    Is there any way to change this default?

  • Posted 29 January 2018, 1:21 am EST

    Hello,

    You could “Label” property of Report items to achieve the same. Please refer the report for implementing the same.

    Note: Please change the connection string of the datasource to run the report

    Also, you can refer the following documentation link:

    http://help.grapecity.com/activereports/webhelp/AR12/webframe.html#DocumentMap.html

    Hope it helps.

    Thanks,

    Mohit

    rdl_DocumentMap.zip

  • Posted 29 January 2018, 12:34 pm EST

    I was able to iterate through the controls in the viewer to find the ToolStripItem for the “btnToc” control.

    If you call the ToolStripItem.PerformClick() method after the report is loaded in the viewer it will display the Table of Contents instead of the Thumbnails.

    John

  • Posted 30 January 2018, 3:01 am EST

    Hello,

    Use following line of code to achieve your requirement :

    
         Viewer1.Toolbar.ToolStrip.Items("tsbToogleSidebar").PerformClick()
    
    

    Hope it helps.

    Thanks,

    Mohit

Need extra support?

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

Learn More

Forum Channels