将保存的文件报告为参数名称
我有一份报告要保存为 .doc 或 .pdf,我的老板希望将此文件的名称保存为参数名称 [它可以包含多个值],但他选择文件格式。
我怎样才能在报告服务中完成这项工作?
谢谢!
I have a report that is going to be saved as .doc or .pdf, my boss wants the name of this file to be saved as the parameters name [it could contain multiple values], but he chooses the file format.
how can I get this done in reporting services?
thx!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你不能从报表管理器中得到,我怀疑你的意思是
你必须使用 SOAP 包装对 ReportServer 的调用,在外部传递参数,并在包装器中重命名。包装器可以是 ASP.NET 或 WinForms 等。
或者,您可以拥有自定义渲染器。
编辑:什么你的老板要求的并不总是可能的,即使对你的老板来说也是如此......
You can't from Report Manager whihc is where I suspect you mean
You'd have to wrap a call to ReportServer using SOAP, passing in parameters externally, and renaming in your wrapper. The wrapper would be ASP.NET or WinForms or such.
Alternatively, you may be able to have a custom renderer.
Edit: what your boss asks isn't always possible, even for your boss...
重写或处理渲染方法并根据提供的参数自定义文件名
override or handle render method and customize the file name based on parameters provided