FastReport_2022_VCL/Demos/Main/115.FR3

17 lines
69 KiB
Plaintext
Raw Permalink Normal View History

2024-01-01 16:13:08 +01:00
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<TfrxReport Version="6.0" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="37871,9972084722" ReportOptions.Description.Text="Demonstrates how to create interactive map. The map displays sales in the world. When you click some country, you will see another report with sales details in this country. To create a map:&#13;&#10;&#13;&#10;- put the Map object on the report page;&#13;&#10;&#13;&#10;- right-click the object, to pop up its menu;&#13;&#10;&#13;&#10;- select &#34;Add Layer&#34; to add a map layer;&#13;&#10;&#13;&#10;- select ESRI MapFile (.shp/.dbf files);&#13;&#10;&#13;&#10;- set the dataset for the map layer;&#13;&#10;&#13;&#10;- set the spatial data (typically an expression that returns a country name) and the analytical data (an expression that returns, for example, sales in this country);&#13;&#10;&#13;&#10;- configure the hyperlink." ReportOptions.LastChange="42760,7408680208" ScriptLanguage="PascalScript" ScriptText.Text="procedure Map1OnPreviewClick(Sender: TfrxView; Button: TMouseButton; Shift: Integer; var Modified: Boolean);&#13;&#10;begin&#13;&#10; if TfrxMapView(Sender).SelectedShapeName = 'United States' then&#13;&#10; TfrxMapView(Sender).Hyperlink.Value := '''USA'''&#13;&#10; else&#13;&#10; TfrxMapView(Sender).Hyperlink.Value := '''' + TfrxMapView(Sender).SelectedShapeName + '''';&#13;&#10;end;&#13;&#10;&#13;&#10;begin&#13;&#10;&#13;&#10;end.">
<Datasets>
<item DataSet="ReportData.MapOrderDetailsDS" DataSetName="MapOrderDetails"/>
<item DataSet="ReportData.MapOrdersDS" DataSetName="MapOrders"/>
</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" MirrorMargins="True" Columns="1" ColumnWidth="210" ColumnPositions.Text="0" PrintOnPreviousPage="True" HGuides.Text="" VGuides.Text="">
<TfrxMapView Name="Map1" IndexTag="0" Left="18,8976378" Top="83,1496063" Width="718,11023622" Height="689,76377953" OnPreviewClick="Map1OnPreviewClick" Hyperlink.Kind="hkDetailReport" Hyperlink.DetailReport="115-2.fr3" Hyperlink.DetailPage="Page2" Hyperlink.ReportVariable="FilterVar" Hyperlink.Value="'test'" Fill.BackColor="12632256" Font.Charset="1" Font.Color="0" Font.Height="-11" Font.Name="Arial" Font.Style="0" Zoom="1" MaxZoom="50" MinZoom="1" OffsetX="0" OffsetY="0" KeepAspectRatio="True" MercatorProjection="True" ColorScale.Visible="True" ColorScale.BorderColor="0" ColorScale.BorderWidth="1" ColorScale.Dock="sdBottomRight" ColorScale.FillColor="16777215" ColorScale.Font.Charset="1" ColorScale.Font.Color="-16777208" ColorScale.Font.Height="-13" ColorScale.Font.Name="Tahoma" ColorScale.Font.Style="0" ColorScale.TitleFont.Charset="1" ColorScale.TitleFont.Color="-16777208" ColorScale.TitleFont.Height="-13" ColorScale.TitleFont.Name="Tahoma" ColorScale.TitleFont.Style="0" ColorScale.ValueFormat="%1.0f" SizeScale.Visible="True" SizeScale.BorderColor="0" SizeScale.BorderWidth="1" SizeScale.Dock="sdBottomRight" SizeScale.FillColor="16777215" SizeScale.Font.Charset="1" SizeScale.Font.Color="-16777208" SizeScale.Font.Height="-13" SizeScale.Font.Name="Tahoma" SizeScale.Font.Style="0" SizeScale.TitleFont.Charset="1" SizeScale.TitleFont.Color="-16777208" SizeScale.TitleFont.Height="-13" SizeScale.TitleFont.Name="Tahoma" SizeScale.TitleFont.Style="0" SizeScale.ValueFormat="%1.2f" PropData="09436F6E76657274657209090500000000000000B406C00500F87E49B16FFFB305C00500080000000000B406400500706071D0FE32A705400500000000000000B407400500607C406EA79EAC07400500B8F880DC4E3DA50640050008EF371C0E87B308400500C84AD005AB2AAC08400805000000000000000000000500000000000000000000050000000000000000000005000000000000000000000500000000000000000000">
<TfrxMapFileLayer Name="MapFileLayer1" AnalyticalValue="&#60;MapOrderDetails.&#34;UnitPrice&#34;&#62; * &#60;MapOrderDetails.&#34;Quantity&#34;&#62; * (1 - &#60;MapOrderDetails.&#34;Discount&#34;&#62;)" ColorRanges.RangeFactor="rfValue" ColorRanges.RangeCount="3" ColorRanges.Visible="True" ColorRanges.StartColor="255" ColorRanges.MiddleColor="65535" ColorRanges.EndColor="32768" DataSet="ReportData.MapOrderDetailsDS" DefaultShapeStyle.BorderColor="0" DefaultShapeStyle.BorderStyle="psSolid" DefaultShapeStyle.BorderWidth="1" DefaultShapeStyle.FillColor="16777215" DefaultShapeStyle.PointSize="10" HighlightColor="65280" Operation="opSum" ValueFormat="%1.0f" LabelKind="mlName" MapPalette="mpNone" SizeRanges.RangeFactor="rfValue" SizeRanges.RangeCount="0" SizeRanges.Visible="True" SizeRanges.StartSize="4" SizeRanges.EndSize="20" PointLabelsVisibleAtZoom="1" LabelColumn="NAME" SpatialColumn="NAME" MapAccuracy="0" MapFileName="Maps\world.shp" PixelAccuracy="0" SpatialValue="IIF(&#60;MapOrders.&#34;ShipCountry&#34;&#62; = 'USA', 'United States' , &#60;MapOrders.&#34;ShipCountry&#34;&#62;)" PropData="0B4D617046696C654E616D65060E4D6170735C776F726C642E73687006536861706573090500000000000000B406C00500080000000000B406400500F87E49B16FFFB305C00500706071D0FE32A705400803F200050000000000000080FF3F050000000000000000000005000000000000000000000500000000000000000000050000000000000000000005000000A8CDEC648104400204060A4E414D453D4172756261060C4142425245563D4172756261060949534F5F41323D4157060A49534F5F41333D414257050000000000000080FF3F050000000000000000000005000000000000000000000500000000000000000000050000000000000000000005000000B48BD9C9FE0440020406104E414D453D41666768616E697374616E060B4142425245563D4166672E060949534F5F41323D4146060A49534F5F41333D414647050000000000000080FF3F050000000000000000000005000000000000000000000500000000000000000000050000000000000000000005000000E0246317BE05400204060B4E414D453D416E676F6C61060B4142425245563D416E672E060949534F5F41323D414F060A49534F5F41333D41474F050000000000000080FF3F050000000000000000000005000000000000000000000500000000000000000000050000000000000000000005000000E683D9C9FC05400204060D4E414D453D416E6775696C6C61060B4142425245563D416E672E060949534F5F41323D4149060A49534F5F41333D414941050000000000000080FF3F05000000000000000000000500000000000000000000050000000000000000000005000000000000000000000500000076F127BE9D06400204060C4E414D453D416C62616E6961060B4142425245563D416C622E060949534F5F41323D414C060A49534F5F41333D414C42050000000000000080FF3F050000000000000000000005000000000000000000000500000000000000000000050000000000000000000005000000F9206317BD06400204060A4E414D453D416C616E64060C4142425245563D416C616E64060A49534F5F41323D2D3939060A49534F5F41333D414C41050000000000000080FF3F0500000000000000000000050000000000000000000005000000000000000000000500000000000000000000050000007C509E70DC06400204060C4E414D453D416E646F727261060B4142425245563D416E642E060949534F5F41323D4144060A49534F5F41333D414E44050000000000000080FF3F050000000000000000000005000000000000000000000500000000000000000000050000000000000000000005000000FF7FD9C9FB0640020406194E414D453D556E69746564204172616220456D697261746573060D4142425245563D552E412E452E060949534F5F41323D4145060A49534F5F41333D415245050000000000000080FF3F050000000000000000000005000000000000000000000500000000000000000000050000000000000000000005000000C1578A918D07400204060E4E414D453D417267656E74696E61060B4142425245563D4172672E060949534F5F41323D4152060A49534F5F41333D415247050000000000000080FF3F05000000000000000000000500000000000000000000050000000000000000000005000000000000000000000500008082EF273E9D07400204060C4E414D453D41726D656E6961060B4142425245563D41726D2E060949534F5F41323D414D060A49534F5F41333D41524D050000000000000080FF3F0500000000000000000000050000000000000000000005000000000000000000000500000000000000000000050000004487C5EAAC0740020406134E414D453D416D65726963616E2053616D6F6106104142425245563D416D2E2053616D6F61060949534F5F41323D4153060A49534F5F41333D41534D050000000000000080FF3F050000000000000000000005000000000000000000000500000000000000000000050000000000000000000005000080051F6397BC07400204060F4E414D453D416E
</TfrxMapView>
<TfrxMemoView Name="Memo1" IndexTag="0" Left="18,8976378" Top="0" Width="718,11023622" Height="37,7953" AutoWidth="True" Font.Charset="1" Font.Color="-16777208" Font.Height="-24" Font.Name="Arial" Font.Style="1" HAlign="haCenter" ParentFont="False" Text="World Sales, Interactive"/>
<TfrxMemoView Name="Memo2" IndexTag="0" Left="18,8976378" Top="37,79527559" Width="718,11023622" Height="22,67718" Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Click the country to see detailed report."/>
<TfrxMemoView Name="Memo3" IndexTag="0" Left="18,89765" Top="60,4724409448819" Width="718,11023622" Height="22,67718" Font.Charset="1" Font.Color="-16777208" Font.Height="-15" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="Use the left mouse button to pan, mouse wheel to zoom the map."/>
</TfrxReportPage>
</TfrxReport>