简体   繁体   English

SSRS数据驱动订阅可自定义DeviceInfo设置,例如PageWidth,PageHeight?

[英]SSRS Data Driven Subscription that customizes DeviceInfo settings like PageWidth, PageHeight?

I want to set up data driven subscriptions to mass output png files. 我想为大量输出png文件设置数据驱动的订阅。 The problem is that adding a new Extension for png in rsreportserver.config under Configurations/Extensions/Render only gives one fixed size of png file. 问题在于,在rsreportserver.config中的Configurations / Extensions / Render下为png添加新的扩展名只能得到一个固定大小的png文件。

Report A really ought to output a 6in x 3in png file and report B ought to output a 6in x 4in png file. 报告A实际上应该输出6in x 3in png文件,报告B应该输出6in x 4in png文件。

Yes, I could create multiple entries in rsreportserver.config but this is confusing for end users as they show up on all users' export dropdowns needlessly. 是的,我可以在rsreportserver.config中创建多个条目,但这会使最终用户感到困惑,因为它们不必要地出现在所有用户的导出下拉列表中。

I proposed doing the mass image generation with an external program that generates a custom url for each png (DeviceInfo settings can be part of the url) and uses WebClient.DownloadFile() in a loop, but my supervisor is currently really locked into the idea of data driven subscriptions for whatever reason. 我建议使用外部程序进行批量图像生成,该程序为每个png生成一个自定义url(DeviceInfo设置可以是该url的一部分),并在循环中使用WebClient.DownloadFile(),但是我的主管目前确实陷入了这一念头出于任何原因的数据驱动订阅。

Per @iamdave's suggestion, just setting the overarching page dimensions in report designer does give a suitably sized png file via data driven subscription without having to hardcode png dimensions in rsreportserver.config. 根据@iamdave的建议,只需在报表设计器中设置总体页面尺寸, 可以通过数据驱动的订阅提供适当大小的png文件,而不必在rsreportserver.config中对png尺寸进行硬编码。

The reason I didn't initially notice this was the reports in question were graphs that were only ever used as subreports on an encompassing megareport and had never really been run as individual standalone reports. 我最初没有注意到的原因是所讨论的报告是仅用作包含的大型报告的子报告的图,从未真正作为独立报告运行。 When used as a subreport, page dimensions never came into play, so they were left at the default 8.5x11. 当用作子报表时,页面尺寸从未发挥作用,因此它们保留为默认的8.5x11。

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

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