MARK 一下,我现在的系统是在旁边加一个比较像的按钮,不过不在工具栏上.关注中.......
解决方案 »
- 运行代码时提示ConnectionString 属性尚未初始化。请各位大师指点一下。
- 发布即为Release
- ClientScript.RegisterStartupScript放在委托里没有输出
- gridview中使用HyperLinkColumn 出错
- asp.net中呼出选择文件夹对话框的的问题.
- ShowModalDialog 传值
- vs.net 2002 chs 无法调试。重装操作系统后都一样。
- 客户耍花招不付款拖死创业公司,怎么办
- 这里有很多控件源码,告诉大家,资源共享
- 如何用asp.net 实现win2000 下wwwroot 里文件的读的权限
- ListBox中数据太长无法显示不全怎么办?在线等~
- 设置同样的数据源,gridview能实现数据过滤,而reportviewer却不能
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