<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="6.1.4" DotMatrixReport="0" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="167935" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="37871.9972084722" ReportOptions.Description.Text="This example shows how to create nested reports using subreport component." ReportOptions.LastChange="43279.4936071065" ScriptLanguage="PascalScript" ScriptText.Text="var&#13;&#10;  TotalSales: Extended;&#13;&#10;&#13;&#10;procedure Band4OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  TotalSales := 0&#13;&#10;end;&#13;&#10;&#13;&#10;procedure Band7OnBeforePrint(Sender: TfrxComponent);&#13;&#10;begin&#13;&#10;  TotalSales := TotalSales + &#60;Items.&#34;Qty&#34;&#62; * &#60;Items.&#34;Price&#34;&#62;;&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.">
  <Datasets>
    <item DataSet="ReportData.CustomersDS" DataSetName="Customers"/>
    <item DataSet="ReportData.IemsDS" DataSetName="Items"/>
    <item DataSet="ReportData.OrdersDS" DataSetName="Orders"/>
  </Datasets>
  <TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
  <TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="5" RightMargin="5" TopMargin="5" BottomMargin="5" Columns="1" ColumnWidth="210" ColumnPositions.Text="0" Frame.Typ="0" PrintOnPreviousPage="1" HGuides.Text="" VGuides.Text="">
    <TfrxReportTitle Name="Band2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="26.45671" Left="0" Top="18.89765" Width="755.906">
      <TfrxMemoView Name="Memo2" AllowVectorExport="1" Left="0" Top="0" Width="710.55164" Height="22.67718" Font.Color="16777215" Font.Height="-16" Font.Name="Arial" Font.Style="1" Frame.Typ="0" Fill.BackColor="8421504" HAlign="haCenter" Memo.Text="Customers" ParentFont="0" VAlign="vaCenter" Text="Customers"/>
    </TfrxReportTitle>
    <TfrxMasterData Name="Band4" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="64.25201" Left="0" Top="105.82684" Width="755.906" OnBeforePrint="Band4OnBeforePrint" Columns="1" ColumnWidth="200" ColumnGap="20" DataSet="ReportData.CustomersDS" DataSetName="Customers" RowCount="0">
      <TfrxMemoView Name="Memo5" AllowVectorExport="1" Left="0" Top="0" Width="302.3624" Height="18.89765" Font.Color="16777215" Font.Height="-13" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="5" Fill.BackColor="128" Memo.Text="Company" ParentFont="0" VAlign="vaCenter" Text="Company"/>
      <TfrxMemoView Name="Memo6" AllowVectorExport="1" Left="0" Top="18.89765" Width="302.3624" Height="26.45671" DataField="Company" DataSet="ReportData.CustomersDS" DataSetName="Customers" Font.Color="16777215" Font.Height="-19" Font.Name="Arial" Font.Style="2" Frame.Color="12632256" Frame.Typ="1" Fill.BackColor="128" Memo.Text="[Customers.&#34;Company&#34;]" ParentFont="0" VAlign="vaCenter" Text="[Customers.&#34;Company&#34;]"/>
      <TfrxMemoView Name="Memo7" AllowVectorExport="1" Left="302.3624" Top="0" Width="188.9765" Height="18.89765" Font.Color="16777215" Font.Height="-13" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="4" Fill.BackColor="128" Memo.Text="Phone" ParentFont="0" VAlign="vaCenter" Text="Phone"/>
      <TfrxMemoView Name="Memo8" AllowVectorExport="1" Left="491.3389" Top="0" Width="219.21274" Height="18.89765" Font.Color="16777215" Font.Height="-13" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="6" Fill.BackColor="128" Memo.Text="Fax" ParentFont="0" VAlign="vaCenter" Text="Fax"/>
      <TfrxMemoView Name="Memo9" AllowVectorExport="1" Left="302.3624" Top="18.89765" Width="188.9765" Height="26.45671" DataField="Phone" DataSet="ReportData.CustomersDS" DataSetName="Customers" Font.Color="16777215" Font.Height="-19" Font.Name="Arial" Font.Style="2" Frame.Color="12632256" Frame.Typ="0" Fill.BackColor="128" Memo.Text="[Customers.&#34;Phone&#34;]" ParentFont="0" VAlign="vaCenter" Text="[Customers.&#34;Phone&#34;]"/>
      <TfrxMemoView Name="Memo10" AllowVectorExport="1" Left="491.3389" Top="18.89765" Width="219.21274" Height="26.45671" DataField="FAX" DataSet="ReportData.CustomersDS" DataSetName="Customers" Font.Color="16777215" Font.Height="-19" Font.Name="Arial" Font.Style="2" Frame.Color="12632256" Frame.Typ="2" Fill.BackColor="128" Memo.Text="[Customers.&#34;FAX&#34;]" ParentFont="0" VAlign="vaCenter" Text="[Customers.&#34;FAX&#34;]"/>
      <TfrxSubreport Name="Subreport1" AllowVectorExport="1" Left="0" Top="45.35436" Width="94.48825" Height="18.89765" Page="Page4"/>
    </TfrxMasterData>
    <TfrxPageFooter Name="PageFooter1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="22.67718" Left="0" Top="230.55133" Width="755.906">
      <TfrxMemoView Name="Memo1" Align="baWidth" AllowVectorExport="1" Left="0" Top="7.55906" Width="755.906" Height="18.89765" Font.Color="-2147483640" Font.Height="-13" Font.Name="Arial" Frame.Typ="0" HAlign="haRight" Memo.Text="[Page#]" ParentFont="0" Text="[Page#]"/>
    </TfrxPageFooter>
  </TfrxReportPage>
  <TfrxReportPage Name="Page4" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" Frame.Typ="0" HGuides.Text="" VGuides.Text="">
    <TfrxMasterData Name="MasterData1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="37.7953" Left="0" Top="18.89765" Width="718.1107" Columns="1" ColumnWidth="200" ColumnGap="20" DataSet="ReportData.OrdersDS" DataSetName="Orders" RowCount="0">
      <TfrxMemoView Name="Memo12" AllowVectorExport="1" Left="0" Top="0" Width="120.94496" Height="18.89765" Frame.Color="12632256" Frame.Typ="1" Fill.BackColor="12632256" Memo.Text="Order No [Orders.&#34;Order No&#34;]" Text="Order No [Orders.&#34;Order No&#34;]"/>
      <TfrxMemoView Name="Memo13" AllowVectorExport="1" Left="120.94496" Top="0" Width="589.60668" Height="18.89765" Frame.Color="12632256" Frame.Typ="2" Fill.BackColor="12632256" Memo.Text="Date [Orders.&#34;Sale Date&#34;]" Text="Date [Orders.&#34;Sale Date&#34;]"/>
      <TfrxSubreport Name="Subreport2" AllowVectorExport="1" Left="0" Top="18.89765" Width="94.48825" Height="18.89765" Page="Page2"/>
    </TfrxMasterData>
    <TfrxFooter Name="Footer1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="26.45671" Left="0" Top="79.37013" Width="718.1107">
      <TfrxMemoView Name="Memo14" AllowVectorExport="1" Left="0" Top="0" Width="710.55164" Height="18.89765" DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Frame.Color="12632256" Frame.Typ="11" Fill.BackColor="12632256" Memo.Text="Total sales this customer: [TotalSales]" Text="Total sales this customer: [TotalSales]"/>
    </TfrxFooter>
  </TfrxReportPage>
  <TfrxReportPage Name="Page2" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" Frame.Typ="0" HGuides.Text="" VGuides.Text="">
    <TfrxHeader Name="Header1" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="18.89765" Left="0" Top="18.89765" Width="718.1107">
      <TfrxMemoView Name="Memo15" AllowVectorExport="1" Left="0" Top="0" Width="45.35436" Height="18.89765" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Color="12632256" Frame.Typ="1" Memo.Text="" ParentFont="0" Text=""/>
      <TfrxMemoView Name="Memo16" AllowVectorExport="1" Left="45.35436" Top="0" Width="60.47248" Height="15.11812" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" HAlign="haCenter" Memo.Text="Part" ParentFont="0" Text="Part"/>
      <TfrxMemoView Name="Memo17" AllowVectorExport="1" Left="113.3859" Top="0" Width="230.55133" Height="15.11812" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" HAlign="haCenter" Memo.Text="Description" ParentFont="0" Text="Description"/>
      <TfrxMemoView Name="Memo18" AllowVectorExport="1" Left="351.49629" Top="0" Width="79.37013" Height="15.11812" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" HAlign="haCenter" Memo.Text="Price" ParentFont="0" Text="Price"/>
      <TfrxMemoView Name="Memo19" AllowVectorExport="1" Left="438.42548" Top="0" Width="60.47248" Height="15.11812" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" HAlign="haCenter" Memo.Text="Qty" ParentFont="0" Text="Qty"/>
      <TfrxMemoView Name="Memo20" AllowVectorExport="1" Left="506.45702" Top="0" Width="79.37013" Height="15.11812" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" HAlign="haCenter" Memo.Text="Total" ParentFont="0" Text="Total"/>
      <TfrxMemoView Name="Memo11" AllowVectorExport="1" Left="585.82715" Top="0" Width="124.72449" Height="18.89765" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Color="12632256" Frame.Typ="2" Memo.Text="" ParentFont="0" Text=""/>
    </TfrxHeader>
    <TfrxMasterData Name="MasterData2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="15.11812" Left="0" Top="60.47248" Width="718.1107" OnBeforePrint="Band7OnBeforePrint" Columns="1" ColumnWidth="200" ColumnGap="20" DataSet="ReportData.IemsDS" DataSetName="Items" RowCount="0">
      <TfrxMemoView Name="Memo21" AllowVectorExport="1" Left="0" Top="0" Width="45.35436" Height="15.11812" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Color="12632256" Frame.Typ="1" Memo.Text="" ParentFont="0" Text=""/>
      <TfrxMemoView Name="Memo22" AllowVectorExport="1" Left="45.35436" Top="0" Width="60.47248" Height="15.11812" DataField="Part No" DataSet="ReportData.IemsDS" DataSetName="Items" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" HAlign="haCenter" Memo.Text="[Items.&#34;Part No&#34;]" ParentFont="0" Text="[Items.&#34;Part No&#34;]"/>
      <TfrxMemoView Name="Memo23" AllowVectorExport="1" Left="113.3859" Top="0" Width="230.55133" Height="15.11812" DataField="Part Name" DataSet="ReportData.IemsDS" DataSetName="Items" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" Memo.Text="[Items.&#34;Part Name&#34;]" ParentFont="0" Text="[Items.&#34;Part Name&#34;]"/>
      <TfrxMemoView Name="Memo24" AllowVectorExport="1" Left="351.49629" Top="0" Width="79.37013" Height="15.11812" DataField="Price" DataSet="ReportData.IemsDS" DataSetName="Items" DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" HAlign="haRight" Memo.Text="[Items.&#34;Price&#34;]" ParentFont="0" Text="[Items.&#34;Price&#34;]"/>
      <TfrxMemoView Name="Memo25" AllowVectorExport="1" Left="438.42548" Top="0" Width="60.47248" Height="15.11812" DataField="Qty" DataSet="ReportData.IemsDS" DataSetName="Items" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" HAlign="haCenter" Memo.Text="[Items.&#34;Qty&#34;]" ParentFont="0" Text="[Items.&#34;Qty&#34;]"/>
      <TfrxMemoView Name="Memo26" AllowVectorExport="1" Left="506.45702" Top="0" Width="79.37013" Height="15.11812" DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Color="0" Font.Height="-11" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="0" HAlign="haRight" Memo.Text="[&#60;Items.&#34;Qty&#34;&#62;*&#60;Items.&#34;Price&#34;&#62;]" ParentFont="0" Text="[&#60;Items.&#34;Qty&#34;&#62;*&#60;Items.&#34;Price&#34;&#62;]"/>
      <TfrxMemoView Name="Memo29" AllowVectorExport="1" Left="585.82715" Top="0" Width="124.72449" Height="15.11812" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Color="12632256" Frame.Typ="2" Memo.Text="" ParentFont="0" Text=""/>
    </TfrxMasterData>
    <TfrxFooter Name="Footer2" FillType="ftBrush" FillGap.Top="0" FillGap.Left="0" FillGap.Bottom="0" FillGap.Right="0" Frame.Typ="0" Height="22.67718" Left="0" Top="98.26778" Width="718.1107">
      <TfrxMemoView Name="Memo27" AllowVectorExport="1" Left="0" Top="0" Width="45.35436" Height="22.67718" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Color="12632256" Frame.Typ="1" Memo.Text="" ParentFont="0" Text=""/>
      <TfrxMemoView Name="Memo28" AllowVectorExport="1" Left="45.35436" Top="0" Width="544.25232" Height="18.89765" DisplayFormat.FormatStr="%2.2m" DisplayFormat.Kind="fkNumeric" Font.Color="128" Font.Height="-13" Font.Name="Arial" Frame.Color="12632256" Frame.Typ="4" HAlign="haRight" Memo.Text="Total this order: [Sum(&#60;Items.&#34;Qty&#34;&#62;*&#60;Items.&#34;Price&#34;&#62;)]" ParentFont="0" Text="Total this order: [Sum(&#60;Items.&#34;Qty&#34;&#62;*&#60;Items.&#34;Price&#34;&#62;)]"/>
      <TfrxMemoView Name="Memo30" AllowVectorExport="1" Left="589.60668" Top="0" Width="120.94496" Height="22.67718" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" Frame.Color="12632256" Frame.Typ="2" Memo.Text="" ParentFont="0" Text=""/>
    </TfrxFooter>
  </TfrxReportPage>
</TfrxReport>
