首页 新闻 搜索 专区 学院

asp.net reportview 显示ssrs 报表问题

0
悬赏园豆:10 [待解决问题]

页面代码:

<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的报表 查询条件 能显示出来,但是点击查询没反应

 

 

怎么会这样,哪位大神给个回复

 

 

唐@的主页 唐@ | 初学一级 | 园豆:162
提问于:2016-10-10 14:26
< >
分享
所有回答(1)
0

我是wpf加了这个东西 。浏览器直接访问报表可以用,程序访问 不报错也不现实任何东西,鼠标放上去有上下页的那个tooltip,蛋疼

狂狗A地板 | 园豆:121 (初学一级) | 2017-01-03 11:34
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册