Reporting services 分页符时,页脚中的两个文本框之一不重复

Reporting services 分页符时,页脚中的两个文本框之一不重复,reporting-services,Reporting Services,我有一份标准8.5x11英寸的报告,运行时将以PDF格式呈现。有时,页面中的内容会溢出到第二页或第三页,这很好。但是,页脚内有两个文本框,一个显示页码,另一个显示版权值。当有第二页时,页码将显示在第一页上,但不会显示版权值 下面是显示页脚部分的.rdl: <PageFooter> <Height>0.28in</Height> <PrintOnFirstPage>true</PrintOnFirstPage> <Pri

我有一份标准8.5x11英寸的报告,运行时将以PDF格式呈现。有时,页面中的内容会溢出到第二页或第三页,这很好。但是,页脚内有两个文本框,一个显示页码,另一个显示版权值。当有第二页时,页码将显示在第一页上,但不会显示版权值

下面是显示页脚部分的.rdl:

<PageFooter>
  <Height>0.28in</Height>
  <PrintOnFirstPage>true</PrintOnFirstPage>
  <PrintOnLastPage>true</PrintOnLastPage>
  <ReportItems>
    <Rectangle Name="Rectangle14">
      <ReportItems>
        <Textbox Name="Copyright">
          <CanGrow>true</CanGrow>
          <KeepTogether>true</KeepTogether>
          <Paragraphs>
            <Paragraph>
              <TextRuns>
                <TextRun>
                  <Value>=ReportItems!Copyright1.Value</Value>
                  <Style>
                    <FontSize>8pt</FontSize>
                  </Style>
                </TextRun>
              </TextRuns>
              <Style>
                <TextAlign>Center</TextAlign>
              </Style>
            </Paragraph>
          </Paragraphs>
          <rd:DefaultName>Copyright</rd:DefaultName>
          <Left>0.43268in</Left>
          <Height>0.25in</Height>
          <Width>4.85687in</Width>
          <Style>
            <Border>
              <Style>None</Style>
            </Border>
            <PaddingLeft>2pt</PaddingLeft>
            <PaddingRight>2pt</PaddingRight>
            <PaddingTop>2pt</PaddingTop>
            <PaddingBottom>2pt</PaddingBottom>
          </Style>
        </Textbox>
        <Textbox Name="textbox42">
          <CanGrow>true</CanGrow>
          <KeepTogether>true</KeepTogether>
          <Paragraphs>
            <Paragraph>
              <TextRuns>
                <TextRun>
                  <Value>="Page " + CStr(Globals!PageNumber) + " of " + CStr(Globals!TotalPages)</Value>
                  <Style>
                    <FontSize>8pt</FontSize>
                  </Style>
                </TextRun>
              </TextRuns>
              <Style>
                <TextAlign>Right</TextAlign>
              </Style>
            </Paragraph>
          </Paragraphs>
          <Left>5.79167in</Left>
          <Height>0.25in</Height>
          <Width>1.375in</Width>
          <ZIndex>1</ZIndex>
          <Style>
            <PaddingLeft>2pt</PaddingLeft>
            <PaddingRight>2pt</PaddingRight>
            <PaddingTop>2pt</PaddingTop>
            <PaddingBottom>2pt</PaddingBottom>
          </Style>
        </Textbox>
      </ReportItems>
      <KeepTogether>true</KeepTogether>
      <Top>0.01in</Top>
      <Left>0.25in</Left>
      <Height>0.25in</Height>
      <Width>7.16667in</Width>
      <Style>
        <Border>
          <Style>None</Style>
        </Border>
      </Style>
    </Rectangle>
  </ReportItems>
  <Style>
    <Border>
      <Style>None</Style>
    </Border>
    <BackgroundColor>White</BackgroundColor>
  </Style>
</PageFooter>

0.28英寸
真的
真的
真的
真的
=报告项目!版权1.价值
8pt
居中
版权
0.43268英寸
0.25英寸
4.85687英寸
没有一个
2吨
2吨
2吨
2吨
真的
真的
=“页面”+CStr(全局!页码)+“共”+CStr(全局!总页数)
8pt
赖特
5.79167英寸
0.25英寸
1.375英寸
1.
2吨
2吨
2吨
2吨
真的
0.01英寸
0.25英寸
0.25英寸
7.16667英寸
没有一个
没有一个
白色
我不知道接下来该怎么办,因为我在SO或MSDN/Google上找到的所有东西都主要围绕着如何隐藏页脚或在所有页面上显示页脚展开,但没有涉及到这个特定问题

编辑:当报告呈现为word文档时,此问题不会出现,但不幸的是,我们处理此特定报告的客户需要PDF文件


编辑#2:我还尝试将两个文本框都包含在页脚的一个矩形中,并将
属性设置为true,但这并没有解决问题。

我发现了问题所在。生成报表时,页脚中的值引用报表正文中不可见文本框的值,该文本框包含我需要在页脚上显示的值

通过更改页脚中文本框的值以引用数据字段而不是报表项,我可以使其显示在多个页面上。因此,问题是:

<Value>=ReportItems!Copyright1.Value</Value>
=ReportItems!版权1.价值
当我需要时:

<Value>=Fields!Copyright.Value</Value>
=字段!版权。价值