3.11 Subreport

The following RDL definition shows an example of a Subreport definition that would be used within a data region. The example includes specifying the location of the report definition to use for the subreport by specifying the path by using the Subreport.ReportName element. The report being referenced requires three report parameters to be supplied with values, which are specified by using the Subreport.Parameters element.

 <Subreport Name="Subreport1">
   <ReportName>/Subreports/CustomerOrder.rdl</ReportName>
   <Parameters>
     <Parameter Name="CustomerID">
       <Value>=Fields!CustomerID.Value</Value>
     </Parameter>
     <Parameter Name="OrderID">
       <Value>=Fields!OrderID.Value</Value>
     </Parameter>
     <Parameter Name="ShowDetails">
       <Value>=(Count(Fields!OrderID.Value) < 5)</Value>
       </Parameter>
     </Parameters>
     <Top>0.69667in</Top>
     <Left>0.43625in</Left>
     <Height>2.61458in</Height>
     <Width>4.77083in</Width>
     <ZIndex>1</ZIndex>
   </Subreport>