FastReport_FMX_2.8.12/Demos/Main/24.FR3

55 lines
15 KiB
Plaintext
Raw Normal View History

2024-01-10 21:50:38 +01:00
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="2.0" DotMatrixReport="False" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.Author="Fediachov A." ReportOptions.CreateDate="37874,9926516319" ReportOptions.Description.Text="Demonstrates how to use charts." ReportOptions.Name="Countries report" ReportOptions.LastChange="44015,5919680903" ReportOptions.VersionMinor="0" ReportOptions.VersionRelease="0" ReportOptions.IsFMXReport="True" ScriptLanguage="PascalScript" ScriptText.Text="&#13;&#10;begin&#13;&#10; Chart1.AddSeries(csHorizBar);&#13;&#10; Chart1.Series[0].ColorEachPoint := True;&#13;&#10; with Chart1.SeriesData[0] do&#13;&#10; begin&#13;&#10; DataType := dtDBData;&#13;&#10; DataSetName := 'Country';&#13;&#10; XSource := 'Country.&#34;Name&#34;';&#13;&#10; YSource := 'Country.&#34;Population&#34;';&#13;&#10; SortOrder := 2;&#13;&#10; TopN := 10;&#13;&#10; TopNCaption := 'Others'&#13;&#10; end;&#13;&#10;&#13;&#10; Chart2.AddSeries(csPie);&#13;&#10; Chart2.Series[0].ColorEachPoint := True;&#13;&#10; with Chart2.SeriesData[0] do&#13;&#10; begin&#13;&#10; DataType := dtDBData;&#13;&#10; DataSetName := 'Country';&#13;&#10; XSource := 'Country.&#34;Name&#34;';&#13;&#10; YSource := 'Country.&#34;Area&#34;';&#13;&#10; SortOrder := 2;&#13;&#10; TopN := 10;&#13;&#10; TopNCaption := 'Others'&#13;&#10; end;&#13;&#10;&#13;&#10; Chart3.AddSeries(csBar);&#13;&#10; Chart3.Series[0].ColorEachPoint := True;&#13;&#10; with Chart3.SeriesData[0] do&#13;&#10; begin&#13;&#10; DataType := dtDBData;&#13;&#10; DataSetName := 'Country';&#13;&#10; XSource := 'Country.&#34;Name&#34;';&#13;&#10; YSource := '&#60;Country.&#34;Population&#34;&#62;/&#60;Country.&#34;Area&#34;&#62;';&#13;&#10; SortOrder := 2;&#13;&#10; TopN := 20;&#13;&#10; TopNCaption := 'Others'&#13;&#10; end&#13;&#10;&#13;&#10;end." OnStartReport="frxReport1OnStartReport" PropData="0844617461736574730101063420446174615365743D22446174614D6F64756C65332E436F756E7472792220446174615365744E616D653D22436F756E747279220000095661726961626C657301010611204E616D653D22204461746162617365220001062C204E616D653D2250617468546F4461746162617365222056616C75653D22272E2E5C64656D6F2E6D646227220000055374796C650100">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="ChartN1" PaperWidth="215,9" PaperHeight="279,4" PaperSize="1" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader1" Height="963,78015" Left="0" Top="18,89765" Width="740,409927">
<TfrxMemoView Name="Memo12" Left="11,33859" Top="3,77953" Width="718,1107" Height="30,23624" ShowHint="False" Color="-1776412" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16252928" Font.Height="-19" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Countries report"/>
<TfrxChartView Name="Chart1" ShiftMode="smWhenOverlapped" Left="11,33859" Top="34,01577" Width="718,1107" Height="449,76407" ShowHint="False" Frame.Typ="15" PropData="0543686172740A990100005450463006544368617274054368617274144261636B57616C6C2E42727573682E436F6C6F720708636C615768697465144261636B57616C6C2E50656E2E56697369626C650812466F6F742E466F6E742E5374796C654578740A0D000000000400000002000000040000001A4C6567656E642E5469746C652E466F6E742E5374796C654578740A0D0000000007000000000000000400000015537562466F6F742E466F6E742E5374796C654578740A0D000000000400000002000000040000000D4672616D652E56697369626C6508165669657733444F7074696F6E732E526F746174696F6E02000F5A6F6F6D2E42727573682E4B696E6407044E6F6E65135A6F6F6D2E50656E2E46696C6C2E436F6C6F720709636C6153696C7665720A426576656C4F75746572070662764E6F6E6505436F6C6F720708636C6157686974650A53697A652E57696474680500000000000000C807400B53697A652E4865696768740500000000000000FA06401453697A652E506C6174666F726D44656661756C740811436F6C6F7250616C65747465496E646578020D00000E4368617274456C65766174696F6E0359010A536572696573446174610100"/>
<TfrxChartView Name="Chart2" Left="11,33859" Top="483,77984" Width="718,1107" Height="476,22078" ShowHint="False" Frame.Typ="15" PropData="0543686172740AB50100005450463006544368617274054368617274144261636B57616C6C2E42727573682E436F6C6F720708636C615768697465144261636B57616C6C2E50656E2E56697369626C650812466F6F742E466F6E742E5374796C654578740A0D00000000040000000200000004000000114772616469656E742E456E64436F6C6F720708636C61426C61636B1A4C6567656E642E5469746C652E466F6E742E5374796C654578740A0D0000000007000000000000000400000015537562466F6F742E466F6E742E5374796C654578740A0D000000000400000002000000040000000D4672616D652E56697369626C6508165669657733444F7074696F6E732E526F746174696F6E02000F5A6F6F6D2E42727573682E4B696E6407044E6F6E65135A6F6F6D2E50656E2E46696C6C2E436F6C6F720709636C6153696C7665720A426576656C4F75746572070662764E6F6E6505436F6C6F720708636C6157686974650A53697A652E57696474680500000000000000C807400B53697A652E4865696768740500000000000000FA06401453697A652E506C6174666F726D44656661756C740811436F6C6F7250616C65747465496E646578020D00000E4368617274456C65766174696F6E0359010A536572696573446174610100"/>
</TfrxPageHeader>
</TfrxReportPage>
<TfrxReportPage Name="ChartN2" PaperWidth="215,9" PaperHeight="279,4" PaperSize="1" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
<TfrxPageHeader Name="PageHeader2" Height="430,86642" Left="0" Top="18,89765" Width="740,409927">
<TfrxChartView Name="Chart3" Left="22,67718" Top="3,77953" Width="657,63822" Height="400,63018" ShowHint="False" PropData="0543686172740A990100005450463006544368617274054368617274144261636B57616C6C2E42727573682E436F6C6F720708636C615768697465144261636B57616C6C2E50656E2E56697369626C650812466F6F742E466F6E742E5374796C654578740A0D000000000400000002000000040000001A4C6567656E642E5469746C652E466F6E742E5374796C654578740A0D0000000007000000000000000400000015537562466F6F742E466F6E742E5374796C654578740A0D000000000400000002000000040000000D4672616D652E56697369626C6508165669657733444F7074696F6E732E526F746174696F6E02000F5A6F6F6D2E42727573682E4B696E6407044E6F6E65135A6F6F6D2E50656E2E46696C6C2E436F6C6F720709636C6153696C7665720A426576656C4F75746572070662764E6F6E6505436F6C6F720708636C6157686974650A53697A652E57696474680500000000000000C807400B53697A652E4865696768740500000000000000FA06401453697A652E506C6174666F726D44656661756C740811436F6C6F7250616C65747465496E646578020D00000E4368617274456C65766174696F6E0359010A536572696573446174610100"/>
<TfrxLineView Name="Line1" Left="22,67718" Top="419,52783" Width="653,85869" Height="0" ShowHint="False" Frame.Typ="4" Frame.Width="3"/>
</TfrxPageHeader>
</TfrxReportPage>
<TfrxReportPage Name="CountryList" PaperWidth="215,9" PaperHeight="279,4" PaperSize="1" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" PrintOnPreviousPage="True" HGuides.Text="" VGuides.Text="">
<TfrxHeader Name="Header1" Height="26,45671" Left="0" Top="185,19697" Width="740,409927" ReprintOnNewPage="True">
<TfrxMemoView Name="Memo5" Left="0" Top="3,77952999999999" Width="226,7718" Height="18,89765" ShowHint="False" Color="-4144960" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16777216" Font.Height="-13" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Name"/>
<TfrxMemoView Name="Memo6" Left="234,33086" Top="3,77952999999999" Width="177,63791" Height="18,89765" ShowHint="False" Color="-4144960" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16777216" Font.Height="-13" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Capital"/>
<TfrxMemoView Name="Memo7" Left="419,52783" Top="3,77952999999999" Width="117,16543" Height="18,89765" ShowHint="False" Color="-4144960" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16777216" Font.Height="-13" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Area"/>
<TfrxMemoView Name="Memo8" Left="544,25232" Top="3,77952999999999" Width="173,85838" Height="18,89765" ShowHint="False" Color="-4144960" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16777216" Font.Height="-13" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Population"/>
</TfrxHeader>
<TfrxGroupHeader Name="GroupHeader1" Height="22,67718" Left="0" Top="238,11039" Width="740,409927" Condition="Country.&#34;Continent&#34;" OutlineText="Country.&#34;Continent&#34;">
<TfrxMemoView Name="Memo11" Left="0" Top="0" Width="718,11030945" Height="18,89765" ShowHint="False" Color="-4144960" DataField="Continent" DataSet="DataModule3.Country" DataSetName="Country" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16252928" Font.Height="-13" HAlign="haCenter" ParentFont="False" Text="[Country.&#34;Continent&#34;]"/>
</TfrxGroupHeader>
<TfrxMasterData Name="MasterData1" Height="15,11812" Left="0" Top="283,46475" Width="740,409927" ColumnWidth="0" ColumnGap="0" DataSet="DataModule3.Country" DataSetName="Country" RowCount="0">
<TfrxMemoView Name="Memo9" Left="0" Top="0" Width="718,1107" Height="15,11812" ShowHint="False" DataSet="DataModule3.Customers" DataSetName="Customers" Highlight.Font.Name="Arial" Highlight.Font.PixelsPerInch="96" Highlight.Font.Style="0" Highlight.Font.Color="-370606080" Highlight.Font.Height="-13" Highlight.Color="-986896" Highlight.Condition="&#60;Line#&#62; mod 2" WordWrap="False" Text=""/>
<TfrxMemoView Name="Memo1" Left="3,77953" Top="0" Width="222,99227" Height="15,11812" ShowHint="False" DataField="Name" DataSet="DataModule3.Country" DataSetName="Country" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="0" Font.Color="-16777216" Font.Height="-11" ParentFont="False" Text="[Country.&#34;Name&#34;]"/>
<TfrxMemoView Name="Memo2" Left="234,33086" Top="0" Width="177,63791" Height="15,11812" ShowHint="False" DataField="Capital" DataSet="DataModule3.Country" DataSetName="Country" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="0" Font.Color="-16777216" Font.Height="-11" ParentFont="False" Text="[Country.&#34;Capital&#34;]"/>
<TfrxMemoView Name="Memo3" Left="419,52783" Top="0" Width="117,16543" Height="15,11812" ShowHint="False" DataSet="DataModule3.Country" DataSetName="Country" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="0" Font.Color="-16777216" Font.Height="-11" HAlign="haRight" ParentFont="False" Text="[Country.&#34;Area&#34;]"/>
<TfrxMemoView Name="Memo4" Left="544,25232" Top="0" Width="170,07885" Height="15,11812" ShowHint="False" DataField="Population" DataSet="DataModule3.Country" DataSetName="Country" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="0" Font.Color="-16777216" Font.Height="-11" HAlign="haRight" ParentFont="False" Text="[Country.&#34;Population&#34;]"/>
</TfrxMasterData>
<TfrxReportTitle Name="ReportTitle2" Height="56,69295" Left="0" Top="18,89765" Width="740,409927">
<TfrxMemoView Name="Memo13" Left="0" Top="15,11812" Width="718,1107" Height="22,67718" ShowHint="False" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16777216" Font.Height="-19" HAlign="haCenter" ParentFont="False" VAlign="vaCenter" Text="Countries summary"/>
</TfrxReportTitle>
<TfrxGroupFooter Name="GroupFooter1" Height="18,89765" Left="0" Top="317,48052" Width="740,409927">
<TfrxMemoView Name="Memo14" Left="0" Top="0" Width="536,69326" Height="18,89765" ShowHint="False" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16252928" Font.Height="-11" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;Country.&#34;Area&#34;&#62;,MasterData1)]"/>
<TfrxMemoView Name="Memo15" Left="536,69326" Top="0" Width="181,41744" Height="18,89765" ShowHint="False" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16252928" Font.Height="-11" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="[SUM(&#60;Country.&#34;Population&#34;&#62;,MasterData1)]"/>
</TfrxGroupFooter>
<TfrxReportSummary Name="ReportSummary1" Height="22,67718" Left="0" Top="400,63018" Width="740,409927">
<TfrxMemoView Name="Memo16" Left="219,21274" Top="0" Width="317,48052" Height="18,89765" ShowHint="False" Color="-4144960" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16252928" Font.Height="-11" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[SUM(&#60;Country.&#34;Area&#34;&#62;,MasterData1)]"/>
<TfrxMemoView Name="Memo17" Left="536,69326" Top="0" Width="181,41744" Height="18,89765" ShowHint="False" Color="-4144960" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16252928" Font.Height="-11" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="[SUM(&#60;Country.&#34;Population&#34;&#62;,MasterData1)]"/>
<TfrxMemoView Name="Memo18" Left="90,70872" Top="0" Width="128,50402" Height="18,89765" ShowHint="False" Color="-4144960" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16252928" Font.Height="-11" ParentFont="False" VAlign="vaCenter" Text="[COUNT(MasterData1)]"/>
<TfrxMemoView Name="Memo19" Left="0" Top="0" Width="90,70872" Height="18,89765" ShowHint="False" Color="-4144960" DisplayFormat.DecimalSeparator="," DisplayFormat.FormatStr="%2.0n" DisplayFormat.Kind="fkNumeric" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="1" Font.Color="-16252928" Font.Height="-11" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="TOTAL:"/>
</TfrxReportSummary>
<TfrxPageHeader Name="PageHeader3" Height="22,67718" Left="0" Top="102,04731" Width="740,409927">
<TfrxMemoView Name="Memo10" Left="0" Top="3,77952999999999" Width="718,1107" Height="15,11812" ShowHint="False" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="0" Font.Color="-16777216" Font.Height="-11" Frame.Typ="8" HAlign="haRight" ParentFont="False" VAlign="vaCenter" Text="Countries summary"/>
</TfrxPageHeader>
<TfrxPageFooter Name="PageFooter1" Height="22,67718" Left="0" Top="442,20501" Width="740,409927">
<TfrxMemoView Name="Memo20" Left="0" Top="3,77953000000002" Width="721,89023" Height="18,89765" ShowHint="False" Font.Name="Arial" Font.PixelsPerInch="96" Font.Style="0" Font.Color="-16252928" Font.Height="-11" Frame.Typ="4" HAlign="haRight" ParentFont="False" Text="Page [Page#] of [TotalPages#]"/>
</TfrxPageFooter>
</TfrxReportPage>
</TfrxReport>