加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 以编程方式查看无需访问Reporting Server的CRM报告

发布时间:2020-12-15 21:00:42 所属栏目:百科 来源:网络整理
导读:有没有办法可以使用C#查看报告(Sales Reports)而无需访问报告服务器? 我正在尝试编写一个监视CRM服务器运行状况的工具(实体记录在正确的位置等),因此我希望该工具位于可以访问每个CRM实例的位置(从2013年开始到2016年)线上). 这样做的原因是我们有一个报告,
有没有办法可以使用C#查看报告(Sales> Reports)而无需访问报告服务器?

我正在尝试编写一个监视CRM服务器运行状况的工具(实体记录在正确的位置等),因此我希望该工具位于可以访问每个CRM实例的位置(从2013年开始到2016年)线上).

这样做的原因是我们有一个报告,它完成了检查所有实体,设置,记录等的健康状况的所有繁重工作,我只是希望能够以编程方式检查此报告(通过xml解析)并告诉用户结果.

我尝试使用html抓取,直接URL方法:/ crmreports/viewer/viewer.aspx?Id=xxxxxxx但是,或许可以预见,返回的HTML只是一个提示登录的页面.

我有所有凭据来建立Xrm服务连接,但我不知道如何使用它来访问报告.

是通过报告服务asmx的唯一途径吗?

解决方法

您可以在C#中调用SSRS WebService.

为此,您应添加Web服务引用:
Instruction

考虑到SSRS中有3个Web服务

There are three endpoints available for managing objects on a report
server,ReportService2005,ReportService2006,and ReportService2010.

The ReportService2005 endpoint is used for managing objects on a
report server that is configured for native mode.

The ReportService2006 endpoint is used for managing objects on a report
server that is configured for SharePoint integrated mode.

The ReportService2010 endpoint merges the functionalities of
ReportService2005 and ReportService2006 and can manage objects on a
report server that that are configured for either native or SharePoint
integrated mode.

Read more here

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读