页面代码:
<body style="width:1024px; margin:auto;"> <form id="form1" runat="server"> <asp:Button ID="btn_SelectInfo" runat="server" Text="刷新" OnClick="btn_SelectInfo_Click" /> <asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager> <rsweb:ReportViewer ID="ReportViewer1" BorderStyle="Solid" ProcessingMode="Remote" runat="server" Width="100%" Height="1000px" EnableTheming="False" ShowWaitControlCancelLink="False" SizeToReportContent="True" Font-Names="Verdana" Font-Size="8pt" WaitMessageFont-Names="Verdana" WaitMessageFont-Size="14pt"> </rsweb:ReportViewer> </form> </body>
protected void Page_Load(object sender, EventArgs e) { List<ReportParameter> list = new List<ReportParameter>(); //ReportParameter param1 = new ReportParameter(); //param1.Name = "Test01"; //param1.Values.Add("测试参数1"); //list.Add(param1); //ReportParameter param2 = new ReportParameter(); //param2.Name = "Test02"; //param2.Values.Add("测试参数2"); //list.Add(param2); ReportViewer1.Reset(); MyReReportViewerCredentialr mcr = new MyReReportViewerCredentialr(@"--", "--", "--"); Uri url = new Uri("--"); //Uri url = new Uri("http://localhost/ReportServer/"); this.ReportViewer1.ServerReport.ReportServerUrl = url; var reportName = "每日大商数据"; this.ReportViewer1.ShowCredentialPrompts = false; this.ReportViewer1.ServerReport.ReportPath = string.Format("/{0}/{1}", "ejpssrsproject", reportName); //this.ReportViewer1.ServerReport.ReportPath = "/Pages/ReportViewer.aspx?%2fejpssrsproject%2f%e6%af%8f%e6%97%a5%e5%85%a8%e5%9b%bd%e9%94%80%e5%94%ae&rs:Command=Render"; this.ReportViewer1.ServerReport.ReportServerCredentials = mcr; if (list.Count > 0) this.ReportViewer1.ServerReport.SetParameters(list); }
SSRS的报表 查询条件 能显示出来,但是点击查询没反应
怎么会这样,哪位大神给个回复
我是wpf加了这个东西 。浏览器直接访问报表可以用,程序访问 不报错也不现实任何东西,鼠标放上去有上下页的那个tooltip,蛋疼