无法在 Reporting Services 2008 上关闭报表分页

Mar*_*otz 2 reporting-services ssrs-2008

我有一个报告服务项目,我正在移动设备上进行渲染。显示是完美的,除了 Reporting Services 2008 将报表分页到两个单独的表中,以用于具有多行的报表。我想关掉这个。根据我所做的研究,您需要将报告的 InteractiveHeight 设置为 0 以禁用分页。但是,RDL 的 xml 格式中没有这样的元素。有没有其他地方可以做到这一点,还是我遗漏了什么?

Ian*_*ton 7

您可以在设计器中执行此操作:

在此处输入图片说明

此元素仅在 InteractiveSize 有非默认值时才会出现:

  <Page>
    <InteractiveHeight>0in</InteractiveHeight>
    <InteractiveWidth>8.5in</InteractiveWidth>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
  </Page>
Run Code Online (Sandbox Code Playgroud)

如果您没有更改这些默认值,它们将不会出现在 XML 中:

  <Page>
    <LeftMargin>1in</LeftMargin>
    <RightMargin>1in</RightMargin>
    <TopMargin>1in</TopMargin>
    <BottomMargin>1in</BottomMargin>
    <Style />
  </Page>
Run Code Online (Sandbox Code Playgroud)

因此,您可以通过设计器添加它,或更新 RDL。但是,如上所述,该元素并非在所有情况下都存在,因此如果不存在,则需要添加它。