📄 64.fr3
字号:
<?xml version="1.0" encoding="utf-8"?>
<TfrxReport Version="4.0a" DotMatrixReport="False" IniFile="\Software\Fast Reports" PreviewOptions.Buttons="4095" PreviewOptions.DoubleBuffered="False" PreviewOptions.Zoom="1" PrintOptions.Printer="Default" PrintOptions.PrintOnSheet="0" ReportOptions.CreateDate="37907,6514537153" ReportOptions.Description.Text="Demonstrates how to print an object inside the cross table. " ReportOptions.LastChange="39013,0524600231" ScriptLanguage="PascalScript" ScriptText.Text="procedure CellMemo0OnBeforePrint(Sender: TfrxComponent); var sh: TfrxShapeView; Memo: TfrxMemoView; begin { cast to TfrxMemoView for more comfort } Memo := TfrxMemoView(Sender); { create the shape object that will indicate the cell rating } { note - you should use Sender.Parent as a parent for the new object! } sh := TfrxShapeView.Create(Memo.Parent); sh.SetBounds(Memo.Left + 8, Memo.Top + 8, 8, 8); sh.Frame.Width := 2; { choose shape color depending on cell value } if Memo.Value < 100 then sh.Frame.Color := clBlack else if Memo.Value < 3000 then sh.Frame.Color := clRed else sh.Frame.Color := clLime; end; procedure DBCross1Cell0OnBeforePrint(Sender: TfrxComponent); begin if Value < 100 then begin DBCross1Object1.Color := clMaroon; DBCross1Object2.Color := clWhite; DBCross1Object3.Color := clWhite; end else if Value < 3000 then begin DBCross1Object1.Color := $00CCFF; DBCross1Object2.Color := $00CCFF; DBCross1Object3.Color := clWhite; end else begin DBCross1Object1.Color := $00CC98; DBCross1Object2.Color := $00CC98; DBCross1Object3.Color := $00CC98; end; end; begin end." PropData="044C656674026003546F7003700108446174617365747301010C3100000020446174615365743D225265706F7274446174612E43726F737344532220446174615365744E616D653D2243726F7373220000095661726961626C65730100055374796C650100">
<TfrxDataPage Name="Data" Height="1000" Left="0" Top="0" Width="1000"/>
<TfrxReportPage Name="Page1" PaperWidth="210" PaperHeight="297" PaperSize="9" LeftMargin="10" RightMargin="10" TopMargin="10" BottomMargin="10" ColumnWidth="0" ColumnPositions.Text="" HGuides.Text="" VGuides.Text="">
<TfrxReportTitle Name="ReportTitle1" Height="29,73222" Left="0" Top="18,89765" Width="718,1107" Child="Child1">
<TfrxMemoView Name="Memo4" Left="18,89765" Top="0" Width="166,29932" Height="18,89765" DisplayFormat.DecimalSeparator="," Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" ParentFont="False" Text="Objects inside cross-tab"/>
</TfrxReportTitle>
<TfrxChild Name="Child1" Height="188,9765" Left="0" Top="71,81107" Width="718,1107" Child="Child2">
<TfrxMemoView Name="Memo1" Left="18,89765" Top="139,84261" Width="309,92146" Height="34,01577" DisplayFormat.DecimalSeparator="," Font.Charset="1" Font.Color="0" Font.Height="-13" Font.Name="Arial" Font.Style="1" LineSpacing="5" ParentFont="False" Text="Employee's salary per year < 100 < 3000 >= 3000"/>
<TfrxShapeView Name="Shape1" Left="22,67718" Top="164,40954157" Width="7,55906" Height="7,55906" Frame.Width="2"/>
<TfrxShapeView Name="Shape2" Left="86,92919" Top="164,40954157" Width="7,55906" Height="7,55906" Frame.Color="255" Frame.Width="2"/>
<TfrxShapeView Name="Shape3" Left="162,51979" Top="164,40954157" Width="7,55906" Height="7,55906" Frame.Color="65280" Frame.Width="2"/>
<TfrxMemoView Name="Memo2" Left="18,89765" Top="0" Width="657,63822" Height="136,06308" DisplayFormat.DecimalSeparator="," Font.Charset="1" Font.Color="-2147483640" Font.Height="-13" Font.Name="Arial" Font.Style="0" ParentFont="False" Text="1st way: create object in a code. To do this: - increase the width of the cross cell by TfrxCrossView.AddWidth property (set to 0,5 cm) - create OnBeforePrint event handler for cross cell - in the handler, create an object that you want to display inside the cell. Note: object should have the same parent as the Sender parameter."/>
</TfrxChild>
<TfrxChild Name="Child2" Height="136,06308" Left="0" Top="283,46475" Width="718,1107" Child="Child3">
<TfrxDBCrossView Name="Cross1" Left="18,89765" Top="3,77952999999997" Width="263,897637795276" Height="128" AddHeight="0" AddWidth="18,8976377952756" DownThenAcross="False" NextCrossGap="0" CellFields.Text="Salary" ColumnFields.Text="Year" DataSet="ReportData.CrossDS" DataSetName="Cross" RowFields.Text="Name" PropData="054D656D6F730AD41600003C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D38223F3E3C63726F73733E3C63656C6C6D656D6F733E3C546672784D656D6F56696577204C6566743D223131392C38393736352220546F703D223335312C3234343238222057696474683D2236312C3839373633373739353237353622204865696768743D22323222205265737472696374696F6E733D22323422204F6E4265666F72655072696E743D2243656C6C4D656D6F304F6E4265666F72655072696E742220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222C2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313432313132383822204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C736522205374796C653D2263656C6C222056416C69676E3D22766143656E7465722220546578743D22302C3030D1802E222F3E3C546672784D656D6F56696577205461673D223122204C6566743D223131392C38393736352220546F703D223337332C3234343238222057696474683D2236312C3839373633373739353237353622204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222C2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313432313132383822204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C736522205374796C653D2263656C6C222056416C69676E3D22766143656E7465722220546578743D22302C3030D1802E222F3E3C546672784D656D6F56696577205461673D223222204C6566743D223138312C3739353238373739353237362220546F703D223335312C3234343238222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222C2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313432313132383822204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C736522205374796C653D2263656C6C222056416C69676E3D22766143656E7465722220546578743D22302C3030D1802E222F3E3C546672784D656D6F56696577205461673D223322204C6566743D223138312C3739353238373739353237362220546F703D223337332C3234343238222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220446973706C6179466F726D61742E446563696D616C536570617261746F723D222C2220446973706C6179466F726D61742E466F726D61745374723D2225322E326D2220446973706C6179466F726D61742E4B696E643D22666B4E756D657269632220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313432313132383822204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686152696768742220506172656E74466F6E743D2246616C736522205374796C653D2263656C6C222056416C69676E3D22766143656E7465722220546578743D22302C3030D1802E222F3E3C2F63656C6C6D656D6F733E3C63656C6C6865616465726D656D6F733E3C546672784D656D6F56696577205461673D2236303022204C6566743D22302220546F703D2230222057696474683D223022204865696768743D223022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C736522205374796C653D2263656C6C686561646572222056416C69676E3D22766143656E7465722220546578743D22222F3E3C546672784D656D6F56696577205461673D2236303122204C6566743D22302220546F703D2230222057696474683D223022204865696768743D223022205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D22332220506172656E74466F6E743D2246616C736522205374796C653D2263656C6C686561646572222056416C69676E3D22766143656E7465722220546578743D22222F3E3C2F63656C6C6865616465726D656D6F733E3C636F6C756D6E6D656D6F733E3C546672784D656D6F56696577205461673D2231303022204C6566743D223131392C38393736352220546F703D223332392C3234343238222057696474683D2236312C3839373633373739353237353622204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C736522205374796C653D22636F6C756D6E2220546578743D22222F3E3C2F636F6C756D6E6D656D6F733E3C636F6C756D6E746F74616C6D656D6F733E3C546672784D656D6F56696577205461673D2233303022204C6566743D223138312C3739353238373739353237362220546F703D223332392C3234343238222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C736522205374796C653D22636F6C6772616E642220546578743D224772616E6420546F74616C222F3E3C2F636F6C756D6E746F74616C6D656D6F733E3C636F726E65726D656D6F733E3C546672784D656D6F56696577205461673D2235303022204C6566743D2233382C38393736352220546F703D223330372C3234343238222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222C2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C736522205374796C653D22636F726E6572222056416C69676E3D22766143656E7465722220546578743D2253616C617279222F3E3C546672784D656D6F56696577205461673D2235303122204C6566743D223131392C38393736352220546F703D223330372C3234343238222057696474683D223134322C38393736333737393532373622204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222C2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C736522205374796C653D22636F726E6572222056416C69676E3D22766143656E7465722220546578743D2259656172222F3E3C546672784D656D6F56696577205461673D2235303222204C6566743D2232302220546F703D223131372C35393036222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D223134222056697369626C653D2246616C73652220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222C2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C736522205374796C653D22636F726E6572222056416C69676E3D22766143656E7465722220546578743D224E616D65222F3E3C546672784D656D6F56696577205461673D2235303322204C6566743D2233382C38393736352220546F703D223332392C3234343238222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220446973706C6179466F726D61742E446563696D616C536570617261746F723D222C2220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C736522205374796C653D22636F726E6572222056416C69676E3D22766143656E7465722220546578743D22456D706C6F796565222F3E3C2F636F726E65726D656D6F733E3C726F776D656D6F733E3C546672784D656D6F56696577205461673D2232303022204C6566743D2233382C38393736352220546F703D223335312C3234343238222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D2232342220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223022204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C736522205374796C653D22726F772220546578743D22222F3E3C2F726F776D656D6F733E3C726F77746F74616C6D656D6F733E3C546672784D656D6F56696577205461673D2234303022204C6566743D2233382C38393736352220546F703D223337332C3234343238222057696474683D22383122204865696768743D22323222205265737472696374696F6E733D22382220416C6C6F7745787072657373696F6E733D2246616C73652220436F6C6F723D22373030303036332220466F6E742E436861727365743D22312220466F6E742E436F6C6F723D22302220466F6E742E4865696768743D222D31332220466F6E742E4E616D653D22417269616C2220466F6E742E5374796C653D223122204672616D652E436F6C6F723D22313637373732313522204672616D652E5479703D2231352220476170583D22332220476170593D2233222048416C69676E3D22686143656E7465722220506172656E74466F6E743D2246616C736522205374796C653D22726F776772616E642220546578743D224772616E6420546F74616C222F3E3C2F726F77746F74616C6D656D6F733E3C63656C6C66756E6374696F6E733E3C6974656D20312F3E3C2F63656C6C66756E6374696F6E733E3C636F6C756D6E736F72743E3C6974656D20302F3E3C2F636F6C756D6E736F72743E3C726F77736F72743E3C6974656D20302F3E3C2F726F77736F72743E3C2F63726F73733E"/>
</TfrxChild>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -