Section Reports Viewer Sidebar show bookmarks by default

Posted by: softcomlimited on 13 August 2019, 6:55 pm EST

    • Post Options:
    • Link

    Posted 13 August 2019, 6:55 pm EST

    I added a report viewer to my WinForm. My section report has bookmarks. For me to see my bookmarks in the sidebar I have to click the Toggle Sidebar button and then click the Document Map button at the bottom.

    Is there any way to force it to show by default? I also don’t want to see the thumbnails.

    I tried

    Me.rptViewer.Sidebar.Visible = True

    Me.rptViewer.Sidebar.ThumbnailsPanel.Visible = False

    Me.rptViewer.Sidebar.TocPanel.Visible = True

    Me.rptViewer.Sidebar.TocPanel.Expanded = True

    but this shows the sidebar with the thumbnails displayed. I only seems to hide the thumbnails button at the bottom, not the actual panel, and I have to click the document map button.

    Thanks

    Brian Morris

  • Posted 13 August 2019, 11:19 pm EST

    Hello Brian,

    Please use this code just after you load the report into the viewer:

    Me.rptViewer.Sidebar.Visible = True
    Me.rptViewer.Sidebar.ThumbnailsPanel.Visible = False
    Me.rptViewer.Sidebar.SelectedIndex = 1
    

    Hope it helps.

    Thanks.

  • Posted 13 August 2019, 11:41 pm EST

    Mr Mohitg,

    Brilliant !! Thanks. The documentation does not make many things clear at all. If not for you guys I would be up a creek.

    Thanks again

    Brian

  • Posted 14 August 2019, 2:51 am EST

    Hello Brian,

    I am glad that your issue has been resolved.

    Thanks for the feedback.

    It would be helpful for us if you provide information that what you wanted to add in documentation so that I will escalate the issue to the concerned team.

    Thanks.

Need extra support?

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

Learn More

Forum Channels