简体   繁体   English

生成Reporting Services 2005 PDF报告并将其存储在磁盘上

[英]Generating a Reporting Services 2005 PDF report and storing it on disk

Is there an easy way to generate a PDF report from an RDL that's been uploaded to Report Manager and put that file somewhere on the server's disk? 是否有一种简单的方法可以从已上传到报表管理器的RDL生成PDF报表,并将该文件放在服务器磁盘上的某个位置? I already have a location on disk to put the file, I just need to know how to programmatically generate the PDF. 我已经在磁盘上放置文件了,我只需要知道如何以编程方式生成PDF。 This is for SQL Server 2005 Reporting Services. 这是针对SQL Server 2005 Reporting Services的。 Code in either VB or C# is fine. VB或C#中的代码都可以。

This article will show you how you can generate PDF report from reporting service, without using report viewer. 本文将向您展示如何在不使用报表查看器的情况下从报表服务生成PDF报表。 Only change you have to do is to write the result byte array into a file stream instead of sending it to response stream as shown in that example. 唯一要做的更改就是将结果字节数组写入文件流,而不是像该示例中所示将其发送到响应流。 The above mentioned example is using the web services provided by SQL reporting service to generate report. 上面提到的示例是使用SQL报告服务提供的Web服务来生成报告。

Do you have to do it programatically? 您是否必须以编程方式进行? Report Manager has this funcationality built in already. 报表管理器已经内置了这种功能。 You just setup a new subscription for that report. 您只需为该报告设置新的订阅。 Instead of setting the delivery as Email, change it to Windows File Share. 而不是将传递设置为电子邮件,而是将其更改为Windows File Share。 You can also change the report format to PDF within those options. 您也可以在这些选项中将报告格式更改为PDF。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 每个部分之后的Reporting Services 2005带有免责声明的报告页面 - Reporting Services 2005 Report with Disclaimers page after each section Reporting Services 2005执行错误 - Reporting services 2005 execution error 显示Reporting Services中的PDF - Display a PDF from Reporting Services 如何在 ASP.Net 和 C# web 页面中将 Reporting Services 报表显示为内联 PDF? - How to display a Reporting Services report as an inline PDF, in a ASP.Net and C# web page? 将报告嵌入实体框架还是报告服务的替代方案? - Embedding a report in Entity Framework or an alternative to reporting services? SQL Reporting Services:查找报告所在的文件夹 - SQL Reporting Services: Finding the folder a report is in 报告服务向C#中的DataTable报告 - Reporting services report to DataTable in C# 使用 Reporting Services 将报告直接发送到打印机 - Send a report directly to printer with Reporting Services Sql Reporting服务 - 在报告中查找项目 - 加载时 - Sql Reporting services - find item in report - on load 我可以从SQL Reporting Services(.rdlc)生成基于图像的PDF报告,而无需将图像保存到任何地方吗? - Can I generate an Image-based PDF report from SQL Reporting Services (.rdlc) with out saving the image anywhere?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM