我可以为MS Reporting Services中的报告指定单独的“屏幕”和“打印”视图吗?

时间:2022-08-09 08:17:05

I guess this is not quite a "programming" question, but it is bothering me none the less. I am the author of a fairly complicated report with a lot of drill-downs and dynamically displayed elements.

我想这不是一个“编程”问题,但它仍然困扰着我。我是一个相当复杂的报告的作者,有很多下钻和动态显示的元素。

The business users I'm writing the report for like the drill-downs on the screen, but when they print, they want to see the report completely expanded and have all information displayed for when they take the report into meetings and such.

我正在撰写报告的业务用户就像屏幕上的下钻一样,但是当他们打印时,他们希望看到报告完全展开并显示所有信息,以便他们将报告带入会议等等。

Is there an (easy) way for me to tell Reporting Services "When displaying on the screen, do this, when you print, do this?" I would think that MS would have thought of an option like that, but I can't seem to find it. Thanks in advance for your help.

是否有一种(简单)方式告诉Reporting Services“当在屏幕上显示时,执行此操作,打印时,请执行此操作吗?”我认为MS会想到这样的选项,但我似乎无法找到它。在此先感谢您的帮助。

1 个解决方案

#1


As far as I know, there is no direct way to do this. The best idea I have is to add a parameter to the report for either "Expanded" or "Collapsed". Then, in the report, set the InitialToggleState of the report items to be an expression involving that parameter. Then, the user can choose whether they want the report fully expanded or collapsed upon initial load.

据我所知,没有直接的方法可以做到这一点。我最好的想法是在报表中为“Expanded”或“Collapsed”添加一个参数。然后,在报告中,将报告项的InitialToggleState设置为涉及该参数的表达式。然后,用户可以选择是否希望报表在初始加载时完全展开或折叠。

#1


As far as I know, there is no direct way to do this. The best idea I have is to add a parameter to the report for either "Expanded" or "Collapsed". Then, in the report, set the InitialToggleState of the report items to be an expression involving that parameter. Then, the user can choose whether they want the report fully expanded or collapsed upon initial load.

据我所知,没有直接的方法可以做到这一点。我最好的想法是在报表中为“Expanded”或“Collapsed”添加一个参数。然后,在报告中,将报告项的InitialToggleState设置为涉及该参数的表达式。然后,用户可以选择是否希望报表在初始加载时完全展开或折叠。