以编程方式创建 Dynamics CRM 4.0 报告的 PDF
我们目前正在将 CRM 3.0 安装升级到 CRM 4.0。
我们从外部网站所做的事情之一是使用 ReportViewer 控件提取 PDF 报告,然后执行 ReportViewer.ServerReport.Render()。
根据我收集的信息,这不再起作用,因为我尝试做的任何事情都会失败,主要是 rsReportParameterProcessingError 和 rsCredentialsNotSpecified。
我怀疑这是因为 4.0 使用 CRM 数据连接器来绕过 Kerberos 信任以进行委派。
因此,我想要的只是 CRM 报告的 PDF,我可以通过编程方式获取该报告。有人尝试过这个吗?
We are currently in the midst of upgrading our CRM 3.0 installation to CRM 4.0.
One of the things we were doing from our external web site is pulling a PDF of a report using the ReportViewer control and then doing a ReportViewer.ServerReport.Render().
From what I've gathered, this doesn't work anymore, because anything I try to do fails, mostly with rsReportParameterProcessingError and rsCredentialsNotSpecified.
I suspect this is because 4.0 uses the CRM Data Connector to get around Kerberos trust for delegation.
So, All I want is a PDF of a CRM report, that I can get programmatically. Anyone ever tried this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我们的解决方案是将特定报表从 CRM 4.0 文件夹复制到报表服务器上的另一个文件夹,然后使用标准 SQL Server 连接字符串从那里使用它们。
我们只有 4 个所需的报表,因此复制是可以忍受的。
编辑:我终于找到了官方答案。在 CRM 4.0 中,编辑报表实体时有一个操作,称为“发布报表供外部使用”。这基本上与我上面所做的完全一样。我不是官方报告人员,所以我没想到要在 CRM 中查看此表单。
但是,现在我可以说我找到了官方答案。
Our solution was to copy the specific reports from CRM's 4.0 folder to another folder on the Report Server, and use them from there using standard SQL Server connection strings..
We only have 4 reports that we needed, so the duplication was bearable.
Edit: I finally found the official answer. In CRM 4.0 there is an Action when editing the report entity, called "Publish Report for External Use". This basically does exactly what I did above. I am not the official Reports guy, so I did not think to go look at this form in CRM.
But, there you have it, now I can say I found an official answer.