locked
hide toolbar in ReportViewer RRS feed

  • Question

  • User2000283796 posted

    What do I have to put in the ASP source to hide the toolbar in a ReportViewer.  I know that it has to look like rs:toolbar=false, but it is unclear where to put it.  Also, I want to do the same thing dynamically using C#.

    Ken

    Friday, June 8, 2012 4:08 AM

Answers

  • User191633014 posted

    you can hide the toolbar via JS:

                string  script = string .Format ("document.getElementById('{0}_Toolbar').style.display = 'none';", ReportViewer1.ClientID );
                ClientScript.RegisterStartupScript(this.GetType(), "_Toolbar",script, true);
    

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 8, 2012 6:49 AM

All replies

  • User191633014 posted

    you can hide the toolbar via JS:

                string  script = string .Format ("document.getElementById('{0}_Toolbar').style.display = 'none';", ReportViewer1.ClientID );
                ClientScript.RegisterStartupScript(this.GetType(), "_Toolbar",script, true);
    

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, June 8, 2012 6:49 AM
  • User2000283796 posted

    Thanks.

    I see ShowToolBar.  What I had read suggested something more complicated

    Ken

    Friday, June 8, 2012 3:10 PM