[英]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.