MARK 一下,我现在的系统是在旁边加一个比较像的按钮,不过不在工具栏上.关注中.......

解决方案 »

  1.   

    可参考以下代码,来找到解决思路。
    protected void Page_Load(object sender, EventArgs e){
    foreach (Control c in ReportViewer1.Controls)
    {
    if (c.ToString() == "Microsoft.Reporting.WebForms.ToolbarControl")
    {
    foreach (Control cc in c.Controls)
    {
    if (cc.ToString() == "Microsoft.Reporting.WebForms.PrintGroup")
    {
    ImageButton imgButton = new ImageButton();
    imgButton.ID = "img1";
    imgButton.ImageUrl = http://SharePoint/_layouts/images/ewr222m.gif;
    string targeturl = "http://SharePoint" + Request.RawUrl.ToString() + "&FullScreen=true";
    imgButton.OnClientClick = "OpenNewWindow('" + targeturl + "')";
    imgButton.Click += new ImageClickEventHandler(ImageButton1_Click);
    imgButton.ToolTip = "Full Screen Mode";
    cc.Controls.Add(imgButton);
    }
    }
    }
    }
    }from: http://blog.bpsnw.com/2007/07/adding-buttons-to-reportviewer-net.html