使用参数从主报表调用SubReport

时间:2014-06-11 15:38:54

标签: reporting-services rdlc

我有一个包含以下结构的模型:

<Manifest>
  <Identifier>0</Identifier>
  <Headers>
    <Header>
      <AccountBarcode>635381834264679575</AccountBarcode>
      <SiteAddress1 />
      <SiteAddress2 />
      <SiteAddress3 />
      <SiteAddress4 />
      <SitePostcode />
      <SeriesNumber>Series 0</SeriesNumber>
      <CollectionDate>12/06/2014</CollectionDate>
    </Header>
  </Headers>
  <DomesticServices>
    <DomServices>
      <AccountNo>Dom Acc 0</AccountNo>
      <Service>Service 0</Service>
      <NoOfItems>0</NoOfItems>
    </DomServices>
    <DomServices>
      <AccountNo>Dom Acc 1</AccountNo>
      <Service>Service 1</Service>
      <NoOfItems>1</NoOfItems>
    </DomServices>
    <DomServices>
      <AccountNo>Dom Acc 2</AccountNo>
      <Service>Service 2</Service>
      <NoOfItems>2</NoOfItems>
    </DomServices>
    <DomServices>
      <AccountNo>Dom Acc 3</AccountNo>
      <Service>Service 3</Service>
      <NoOfItems>3</NoOfItems>
    </DomServices>
    <DomServices>
      <AccountNo>Dom Acc 4</AccountNo>
      <Service>Service 4</Service>
      <NoOfItems>4</NoOfItems>
    </DomServices>
    <DomServices>
      <AccountNo>Dom Acc 5</AccountNo>
      <Service>Service 5</Service>
      <NoOfItems>5</NoOfItems>
    </DomServices>
    <DomServices>
      <AccountNo>Dom Acc 6</AccountNo>
      <Service>Service 6</Service>
      <NoOfItems>6</NoOfItems>
    </DomServices>
    <DomServices>
      <AccountNo>Dom Acc 7</AccountNo>
      <Service>Service 7</Service>
      <NoOfItems>7</NoOfItems>
    </DomServices>
    <DomServices>
      <AccountNo>Dom Acc 8</AccountNo>
      <Service>Service 8</Service>
      <NoOfItems>8</NoOfItems>
    </DomServices>
    <DomServices>
      <AccountNo>Dom Acc 9</AccountNo>
      <Service>Service 9</Service>
      <NoOfItems>9</NoOfItems>
    </DomServices>
  </DomesticServices>
  <InternationalServices>
    <IntServices>
      <AccountNo>Int Acc 0</AccountNo>
      <Service>Service 0</Service>
      <NoOfItems>0</NoOfItems>
    </IntServices>
    <IntServices>
      <AccountNo>Int Acc 1</AccountNo>
      <Service>Service 1</Service>
      <NoOfItems>1</NoOfItems>
    </IntServices>
    <IntServices>
      <AccountNo>Int Acc 2</AccountNo>
      <Service>Service 2</Service>
      <NoOfItems>2</NoOfItems>
    </IntServices>
    <IntServices>
      <AccountNo>Int Acc 3</AccountNo>
      <Service>Service 3</Service>
      <NoOfItems>3</NoOfItems>
    </IntServices>
    <IntServices>
      <AccountNo>Int Acc 4</AccountNo>
      <Service>Service 4</Service>
      <NoOfItems>4</NoOfItems>
    </IntServices>
    <IntServices>
      <AccountNo>Int Acc 5</AccountNo>
      <Service>Service 5</Service>
      <NoOfItems>5</NoOfItems>
    </IntServices>
    <IntServices>
      <AccountNo>Int Acc 6</AccountNo>
      <Service>Service 6</Service>
      <NoOfItems>6</NoOfItems>
    </IntServices>
    <IntServices>
      <AccountNo>Int Acc 7</AccountNo>
      <Service>Service 7</Service>
      <NoOfItems>7</NoOfItems>
    </IntServices>
    <IntServices>
      <AccountNo>Int Acc 8</AccountNo>
      <Service>Service 8</Service>
      <NoOfItems>8</NoOfItems>
    </IntServices>
    <IntServices>
      <AccountNo>Int Acc 9</AccountNo>
      <Service>Service 9</Service>
      <NoOfItems>9</NoOfItems>
    </IntServices>
  </InternationalServices>
  <TrackingRanges />
  <Footers />
</Manifest>

我在报告中创建了数据集,包括清单,标题和服务等。 这是一个非常简化的示例,但在我的主报告中,我有一个表格,它将显示每个清单的子报告。

现在我可以将标识符作为参数传递,但在我的子报表中,我有一个表,其中datasetname是Services,如何告诉它为参数发送的清单标识符加载服务??

提前致谢!

0 个答案:

没有答案