Change page layout in the middle of report (SSRS)

守給你的承諾、 提交于 2019-12-10 16:38:19

问题


Hei,

I have a main report with Portrait layout, but the main report contains subreports and some of subreports needs to be in Landscape layout.

Is it possible to change main report layout so that it shows some subreports as lanscape and some in portrait?

Thanks a lot!


回答1:


I'm sorry, I don't think this is possible, at least not in SSRS 2008.

From the subreports section at the end of this Rendering Report Items MSDN article:

Subreports can grow to the size of the body defined in the .rdl file that defines the subreport. For example, if the RDL for the subreport states that the subreport body is 5 inches wide, then the subreport will be 5 inches wide within the parent report.

In addition it mentions that the page header and footer from subreports are omitted. All this indicates that the Page Size from a report is not used at all if it's rendered as a subreport. The parent's Page Size is used in the entire report, thus enforcing a single layout (page size) on the entire report.



来源:https://stackoverflow.com/questions/11226083/change-page-layout-in-the-middle-of-report-ssrs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!