在C#Report Viewer控件中加载SQL报表 [英] Load SQL Reports in C# Report Viewer control

查看:75
本文介绍了在C#Report Viewer控件中加载SQL报表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我使用以下网址在浏览器中访问我的SQL报告
http://CompanyDBServer/Reports/Pages/Report.aspx?ItemPath = / GreatPlainsReports / MonthlyStatement

我正在尝试创建一个C#应用程序,并在我的报表查看器控件中加载此报表。我设置了以下属性

I am trying to create a C# application, and load this report in my report viewer control. I have set following properties

ReportPath = / GreatPlainsReports / MonthlyStatement
ReportServerUrl = http:// CompanyDBServer / Reports /
ProcessingMode =远程

ReportPath = /GreatPlainsReports/MonthlyStatement
ReportServerUrl = http://CompanyDBServer/Reports/
ProcessingMode = Remote

但是当我尝试运行它时,我收到了以下错误。

But when I try to run it, I am getting following error.


  • 尝试连接到报表服务器失败。检查连接信息,并且报表服务器是兼容版本。

    • 请求失败,HTTP状态为404:Not Found。


    你能告诉我这里的错误吗?


    Can you please tell me what I am doing wrong here?

    提前致谢。

    推荐答案

    您好Capriono,

    尝试将ReportServerUrl设置为"http:// CompanyDBServer / ReportServer"。这应该可以解决问题。



    Hi Capriono,

    Try setting the ReportServerUrl to "http://CompanyDBServer/ReportServer". That should do the trick.





    这篇关于在C#Report Viewer控件中加载SQL报表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆