简体   繁体   English

使用SQL Reporting Services进行密码保护的PDF / Excel报告

[英]Password protected PDF/Excel reports using SQL Reporting services

I am generating a reports using SQL Reporting services 2005. I need to protect the protect the reports(pdf and excel) with the password while the user is exporting the report to to excel or pdf. 我正在使用SQL Reporting Services 2005生成报告。当用户将报告导出到excel或pdf时,我需要使用密码来保护报告(pdf和excel)。

Is there any way to protect the report. 有什么方法可以保护报告。

The short answer is that you can't do this from the provided PDF rendering extension from SSRS 2005 (either from the web UI or programmatically from the SSRS web services). 简短的答案是,您无法从SSRS 2005(从Web UI或以编程方式从SSRS Web服务)提供的PDF呈现扩展名中执行此操作。 You can, however, create your own rendering extension that could provide this functionality. 但是,您可以创建自己的渲染扩展程序来提供此功能。 Here are some links that might help get you started: 以下是一些可能有助于您入门的链接:

Introducing Rendering Extensions Microsoft SQL Server 2005: Reporting Services 渲染扩展介绍 Microsoft SQL Server 2005:Reporting Services

You could take a COTS library, some open-source code, or your own custom code that can create password-protected PDF files, then wrap that into a custom rendering extension for SSRS 2005. In my opinion, however, this would be a relatively difficult task. 您可以使用COTS库,一些开放源代码或您自己的可以创建受密码保护的PDF文件的自定义代码,然后将其包装到SSRS 2005的自定义呈现扩展中。但是,我认为这是相对而言的困难的任务。 A quick Google search didn't give me any obvious rendering extensions for sale that might provide the functionality you're looking for. 快速的Google搜索并没有给我提供任何明显的渲染扩展,这些扩展可能会提供您所需要的功能。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM