Highlight.frx 6.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Report ScriptLanguage="CSharp" ReportInfo.Description="Demonstrates how to highlight some values in the matrix. To do this:&#13;&#10;- select the cell that you need to highlight;&#13;&#10;- click the &quot;Highlight&quot; button on the &quot;Text&quot; toolbar;&#13;&#10;- add a new highlight condition. Use the &quot;Value&quot; property to refer to the cell's value." ReportInfo.Created="05/16/2008 01:44:40" ReportInfo.Modified="03/30/2023 01:05:10" ReportInfo.CreatorVersion="1.0.0.0">
  3. <Dictionary>
  4. <TableDataSource Name="MatrixDemo" ReferenceName="NorthWind.MatrixDemo" DataType="System.Int32" Enabled="true">
  5. <Column Name="Name" DataType="System.String"/>
  6. <Column Name="Year" DataType="System.Int32"/>
  7. <Column Name="Month" DataType="System.Int32"/>
  8. <Column Name="ItemsSold" DataType="System.Int32"/>
  9. <Column Name="Revenue" DataType="System.Decimal"/>
  10. </TableDataSource>
  11. </Dictionary>
  12. <ReportPage Name="Page1" Watermark.Font="Arial, 60pt">
  13. <ReportTitleBand Name="ReportTitle1" Width="718.2" Height="66.15" CanGrow="true">
  14. <TextObject Name="Text1" Top="37.8" Width="718.2" Height="18.9" Text="Highlight values &gt; 3000" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt"/>
  15. <TextObject Name="Text13" Width="718.2" Height="37.8" Text="REVENUE BY EMPLOYEE" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 14pt, style=Bold"/>
  16. </ReportTitleBand>
  17. <DataBand Name="Data1" Top="68.15" Width="718.2" Height="92.87">
  18. <MatrixObject Name="Matrix1" Left="17.91" Top="5.13" Width="304.38" Height="78.29" FixedRows="1" FixedColumns="2" AutoSize="false" DataSource="MatrixDemo" Style="Orange">
  19. <MatrixColumns>
  20. <Header Expression="[MatrixDemo.Name]"/>
  21. </MatrixColumns>
  22. <MatrixRows>
  23. <Header Expression="[MatrixDemo.Year]"/>
  24. <Header Expression="[MatrixDemo.Month]"/>
  25. </MatrixRows>
  26. <MatrixCells>
  27. <Cell Expression="[MatrixDemo.Revenue]"/>
  28. </MatrixCells>
  29. <TableColumn Name="Column1" Width="48.26"/>
  30. <TableColumn Name="Column2" Width="56.78"/>
  31. <TableColumn Name="Column3" Width="115.56"/>
  32. <TableColumn Name="Column4" Width="83.78"/>
  33. <TableRow Name="Row1" Height="26.66">
  34. <TableCell Name="Cell1" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="Year" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="White"/>
  35. <TableCell Name="Cell2" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="Month" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="White"/>
  36. <TableCell Name="Cell7" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="[Name]" AllowExpressions="false" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="White"/>
  37. <TableCell Name="Cell10" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="Total" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold" TextFill.Color="White"/>
  38. </TableRow>
  39. <TableRow Name="Row2" Height="17.21">
  40. <TableCell Name="Cell3" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="[Year]" AllowExpressions="false" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="White" RowSpan="2"/>
  41. <TableCell Name="Cell4" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="[Month]" AllowExpressions="false" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="White"/>
  42. <TableCell Name="Cell8" Border.Lines="All" Border.Color="White" Fill.Color="WhiteSmoke" Text="[Revenue]" AllowExpressions="false" Format="Currency" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt">
  43. <Highlight>
  44. <Condition Expression="Value &gt; 3000" Fill.Color="200, 160, 120" TextFill.Color="Black" Font="Arial, 10pt" ApplyFill="true"/>
  45. </Highlight>
  46. </TableCell>
  47. <TableCell Name="Cell11" Border.Lines="All" Border.Color="White" Fill.Color="WhiteSmoke" Format="Currency" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
  48. </TableRow>
  49. <TableRow Name="Row5" Height="17.21">
  50. <TableCell Name="Cell5" Border.Color="White" Fill.Color="160, 120, 120" Font="Segoe UI, 9pt"/>
  51. <TableCell Name="Cell6" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="Total" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="White"/>
  52. <TableCell Name="Cell9" Border.Lines="All" Border.Color="White" Fill.Color="Gainsboro" Format="Currency" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt"/>
  53. <TableCell Name="Cell12" Border.Lines="All" Border.Color="White" Fill.Color="Gainsboro" Format="Currency" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
  54. </TableRow>
  55. <TableRow Name="Row7" Height="17.21">
  56. <TableCell Name="Cell13" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="Total" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold" TextFill.Color="White" ColSpan="2"/>
  57. <TableCell Name="Cell14" Border.Color="White" Fill.Color="160, 120, 120" Font="Segoe UI, 9pt"/>
  58. <TableCell Name="Cell15" Border.Lines="All" Border.Color="White" Fill.Color="WhiteSmoke" Format="Currency" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
  59. <TableCell Name="Cell16" Border.Lines="All" Border.Color="White" Fill.Color="WhiteSmoke" Format="Currency" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
  60. </TableRow>
  61. </MatrixObject>
  62. </DataBand>
  63. <PageFooterBand Name="PageFooter1" Top="163.02" Width="718.2" Height="28.35" Fill.Color="WhiteSmoke">
  64. <TextObject Name="Text12" Left="9.45" Width="217.35" Height="28.35" Cursor="Hand" Hyperlink.Value="https://www.fast-report.com/en/product/fast-report-net/" Text="Generated by FastReport" VertAlign="Center" Font="Segoe UI, 9pt, style=Underline" TextFill.Color="Blue"/>
  65. </PageFooterBand>
  66. </ReportPage>
  67. </Report>