12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- <?xml version="1.0" encoding="utf-8"?>
- <Report ScriptLanguage="CSharp" ReportInfo.Description="Demonstrates how to highlight some values in the matrix, using the row/column values instead of a cell value. To do this: - select the cell that you need to highlight; - click the "Highlight" button on the "Text" toolbar; - add a new highlight condition. Use the Matrix1.ColumnValues or Matrix1.RowValues members to refer to the value you need to analyze. Note: these values are arrays of System.Object, so you need to cast it to actual type before making any comparisons." ReportInfo.Created="05/16/2008 01:44:40" ReportInfo.Modified="04/07/2023 18:03:35" ReportInfo.CreatorVersion="1.0.0.0">
- <Dictionary>
- <TableDataSource Name="MatrixDemo" ReferenceName="NorthWind.MatrixDemo" DataType="System.Int32" Enabled="true">
- <Column Name="Name" DataType="System.String"/>
- <Column Name="Year" DataType="System.Int32"/>
- <Column Name="Month" DataType="System.Int32"/>
- <Column Name="ItemsSold" DataType="System.Int32"/>
- <Column Name="Revenue" DataType="System.Decimal"/>
- </TableDataSource>
- </Dictionary>
- <ReportPage Name="Page1" Landscape="true" PaperWidth="297" PaperHeight="210" RawPaperSize="9" Watermark.Font="Arial, 60pt">
- <ReportTitleBand Name="ReportTitle1" Width="1047.06" Height="56.7" CanGrow="true">
- <TextObject Name="Text1" Top="37.8" Width="1048.95" Height="18.9" Anchor="Top, Left, Right" Text="Highlight the 2012 year" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt"/>
- <TextObject Name="Text13" Width="1048.95" Height="37.8" Anchor="Top, Left, Right" Text="ITEMS SOLD AND REVENUE BY EMPLOYEE" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 14pt, style=Bold"/>
- </ReportTitleBand>
- <DataBand Name="Data1" Top="58.7" Width="1047.06" Height="99.85">
- <MatrixObject Name="Matrix1" Top="8.56" Width="187.23" Height="81.84" FixedRows="2" FixedColumns="1" DataSource="MatrixDemo" Style="Orange">
- <MatrixColumns>
- <Header Expression="[MatrixDemo.Year]"/>
- <Header Expression="[MatrixDemo.Month]"/>
- </MatrixColumns>
- <MatrixRows>
- <Header Expression="[MatrixDemo.Name]"/>
- </MatrixRows>
- <MatrixCells>
- <Cell Expression="[MatrixDemo.Revenue]"/>
- </MatrixCells>
- <TableColumn Name="Column1" Width="49.11" AutoSize="true"/>
- <TableColumn Name="Column2" Width="63.16" AutoSize="true"/>
- <TableColumn Name="Column3" Width="36.19" AutoSize="true"/>
- <TableColumn Name="Column4" Width="38.77" AutoSize="true"/>
- <TableRow Name="Row1" Height="20.46" AutoSize="true">
- <TableCell Name="Cell1" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="Name" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="White" RowSpan="2"/>
- <TableCell Name="Cell2" 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" ColSpan="2"/>
- <TableCell Name="Cell7" Font="Segoe UI, 9pt"/>
- <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" RowSpan="2"/>
- </TableRow>
- <TableRow Name="Row2" Height="20.46" AutoSize="true">
- <TableCell Name="Cell3" Fill.Color="160, 120, 120" Font="Segoe UI, 9pt" TextFill.Color="White"/>
- <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"/>
- <TableCell Name="Cell8" Border.Lines="All" Border.Color="White" Fill.Color="160, 120, 120" Text="Total" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="White"/>
- <TableCell Name="Cell11" Font="Segoe UI, 9pt"/>
- </TableRow>
- <TableRow Name="Row5" Height="20.46" AutoSize="true">
- <TableCell Name="Cell5" 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"/>
- <TableCell Name="Cell6" 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">
- <Highlight>
- <Condition Expression="(int)Matrix1.ColumnValues[0] == 2012" Fill.Color="255, 235, 155" Font="Arial, 10pt"/>
- </Highlight>
- </TableCell>
- <TableCell Name="Cell9" 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"/>
- <TableCell Name="Cell12" 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"/>
- </TableRow>
- <TableRow Name="Row6" Height="20.46" AutoSize="true">
- <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"/>
- <TableCell Name="Cell14" 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"/>
- <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"/>
- <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"/>
- </TableRow>
- </MatrixObject>
- </DataBand>
- <PageFooterBand Name="PageFooter1" Top="160.55" Width="1047.06" Height="28.35" Fill.Color="WhiteSmoke">
- <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"/>
- </PageFooterBand>
- </ReportPage>
- </Report>
|