【问题标题】:How can I control the subreport layout?如何控制子报表布局?
【发布时间】:2009-08-27 15:40:28
【问题描述】:

我的业务分析师创建了 7 个报告(使用报告生成器),他们希望将它们合并到一个 MEGA 报告中。我一直试图通过将它们全部包装在子报表中来做到这一点(您不能在 Report Builder 1.0 中使用它)。虽然所有报告都会显示,但布局却无处不在。子报表似乎会重新排序。

我只使用两个报告来尝试隔离错误。运行时,subreport2 显示在 subreport1 上方。

我需要对我的报告(或子报告)进行哪些更改才能让它们按顺序显示?

<?xml version="1.0" encoding="utf-8"?>
<Report xmlns="schema">
  <InteractiveHeight>11in</InteractiveHeight>
  <rd:DrawGrid>true</rd:DrawGrid>
  <InteractiveWidth>8.5in</InteractiveWidth>
  <rd:SnapToGrid>true</rd:SnapToGrid>
  <RightMargin>1in</RightMargin>
  <LeftMargin>1in</LeftMargin>
  <BottomMargin>1in</BottomMargin>
  <rd:ReportID>480f6105-cb4d-4969-b530-81ab5a5e3fb8</rd:ReportID>
  <Width>8.5in</Width>
  <Body>
    <ReportItems>
      <Subreport Name="subreport1">
        <ReportName>Report1</ReportName>
      </Subreport>   
      <Subreport Name="subreport2">
        <ReportName>Report2</ReportName>
      </Subreport> 
    </ReportItems>
    <Height>0.5in</Height>
   </Body>
   <Language>en-US</Language>
   <TopMargin>1in</TopMargin>
  </Report>

【问题讨论】:

    标签: reportingservices-2005 subreport rdl


    【解决方案1】:
    1. 添加表格
    2. 将每个子报表放在自己的表格单元格中
    3. 根据所需布局组织单元格

    【讨论】:

      猜你喜欢
      • 2011-12-21
      • 2018-10-03
      • 1970-01-01
      • 1970-01-01
      • 2012-08-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多