12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <?xml version="1.0" encoding="utf-8"?>
- <Report ScriptLanguage="CSharp" ReportInfo.Description="Demonstrates how to create a matrix with no columns. To do this: - drag the data from the Data window to create a row and a cell; - we are not going to print the first row that contains column headers (they are empty). To do this, doubleclick the left-top cell and clear the text; - instead we are going to print the title. To enable it: right-click the left-top corner of the matrix (where you see the "move" indicator) to show the matrix context menu, and click "Show Title" item to enable the matrix title; - set the title text." ReportInfo.Created="05/16/2008 01:44:40" ReportInfo.Modified="04/07/2023 18:00:53" 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" Watermark.Font="Arial, 60pt">
- <ReportTitleBand Name="ReportTitle1" Width="718.2" Height="37.8" CanGrow="true">
- <TextObject Name="Text1" Width="718.2" Height="37.8" Text="REVENUE BY EMPLOYEE" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 14pt, style=Bold"/>
- </ReportTitleBand>
- <DataBand Name="Data1" Top="39.8" Width="718.2" Height="107.2">
- <MatrixObject Name="Matrix1" Left="9.45" Top="4.94" Width="203.06" Height="102.26" FixedRows="2" FixedColumns="1" AutoSize="false" DataSource="MatrixDemo" ShowTitle="true" Style="Orange">
- <MatrixColumns/>
- <MatrixRows>
- <Header Expression="[MatrixDemo.Name]"/>
- </MatrixRows>
- <MatrixCells>
- <Cell Expression="[MatrixDemo.Revenue]"/>
- </MatrixCells>
- <TableColumn Name="Column1" Width="102.78"/>
- <TableColumn Name="Column2" Width="100.28"/>
- <TableRow Name="Row1" Height="26.66">
- <TableCell Name="Cell1" Border.Lines="All" Border.Color="White" Fill.Color="130, 180, 130" Text="Employee" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
- <TableCell Name="Cell2" Border.Lines="All" Border.Color="White" Fill.Color="130, 180, 130" Text="Revenue" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
- </TableRow>
- <TableRow Name="Row2" Visible="false">
- <TableCell Name="Cell3" Border.Lines="All" Border.Color="White" Fill.Color="130, 180, 130" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt"/>
- <TableCell Name="Cell4" Fill.Color="WhiteSmoke" Text="Drag data here to create a new column" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt" TextFill.Color="Gray"/>
- </TableRow>
- <TableRow Name="Row4" Height="28.35">
- <TableCell Name="Cell5" Border.Lines="All" Border.Color="White" Fill.Color="130, 180, 130" Text="[Name]" AllowExpressions="false" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt"/>
- <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"/>
- </TableRow>
- <TableRow Name="Row5" Height="28.35">
- <TableCell Name="Cell7" Border.Lines="All" Border.Color="White" Fill.Color="130, 180, 130" Text="Total" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
- <TableCell Name="Cell8" 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="149" Width="718.2" 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>
|