Databand Columns, Row Numbers.frx 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Report ScriptLanguage="CSharp" ReportInfo.Description="Demonstrates the databand columns feature. To use it:&#13;&#10;- select a data band;&#13;&#10;- go to the &quot;Properties&quot; window and open the &quot;Columns&quot; property;&#13;&#10;- set the &quot;Count&quot; property to 2 or more;&#13;&#10;- set the &quot;Layout&quot; property if needed.&#13;&#10;&#13;&#10;To print a row number, use the &quot;Row#&quot; system variable. Row numbers will reset on each new group. The &quot;AbsRow#&quot; system variable will display absolute numbers that are not reset by a group." ReportInfo.Created="01/17/2008 04:31:41" ReportInfo.Modified="03/28/2023 20:02:49" ReportInfo.CreatorVersion="1.0.0.0">
  3. <Styles>
  4. <Style Name="EvenRows" Fill.Color="OldLace" Font="Arial, 10pt"/>
  5. </Styles>
  6. <Dictionary>
  7. <TableDataSource Name="Products" ReferenceName="NorthWind.Products" DataType="System.Int32" Enabled="true">
  8. <Column Name="ProductID" DataType="System.Int32"/>
  9. <Column Name="ProductName" DataType="System.String"/>
  10. <Column Name="SupplierID" DataType="System.Int32"/>
  11. <Column Name="CategoryID" DataType="System.Int32"/>
  12. <Column Name="QuantityPerUnit" DataType="System.String"/>
  13. <Column Name="UnitPrice" DataType="System.Decimal"/>
  14. <Column Name="UnitsInStock" DataType="System.Int16"/>
  15. <Column Name="UnitsOnOrder" DataType="System.Int16"/>
  16. <Column Name="ReorderLevel" DataType="System.Int16"/>
  17. <Column Name="Discontinued" DataType="System.Boolean" BindableControl="CheckBox"/>
  18. <Column Name="EAN13" DataType="System.String"/>
  19. </TableDataSource>
  20. </Dictionary>
  21. <ReportPage Name="Page1" Watermark.Font="Arial, 60pt">
  22. <ReportTitleBand Name="ReportTitle1" Width="718.2" Height="37.8" CanGrow="true">
  23. <TextObject Name="Text1" Width="718.2" Height="37.8" Text="ALPHABETICAL PRODUCT LIST" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 14pt, style=Bold"/>
  24. </ReportTitleBand>
  25. <GroupHeaderBand Name="GroupHeader1" Top="39.8" Width="718.2" Height="47.25" KeepWithData="true" Condition="[Products.ProductName].Substring(0,1)">
  26. <TextObject Name="Text7" Top="9.45" Width="37.8" Height="37.8" Border.Color="LightSkyBlue" Fill.Color="110, 145, 190" Text="[[Products.ProductName].Substring(0,1)]" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 14pt, style=Bold" TextFill.Color="White"/>
  27. <DataBand Name="Data1" Top="89.05" Width="359.1" Height="18.9" DataSource="Products" Columns.Count="2">
  28. <TextObject Name="Text2" Left="37.8" Width="264.6" Height="18.9" Text="[Products.ProductName]" VertAlign="Center" Font="Segoe UI, 9pt"/>
  29. <TextObject Name="Text3" Width="37.8" Height="18.9" Text="[Row#]." HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt"/>
  30. <Sort>
  31. <Sort Expression="[Products.ProductName]"/>
  32. </Sort>
  33. </DataBand>
  34. </GroupHeaderBand>
  35. <PageFooterBand Name="PageFooter1" Top="109.95" Width="718.2" Height="28.35" Fill.Color="WhiteSmoke">
  36. <TextObject Name="Text9" Left="614.25" Width="94.5" Height="28.35" Text="[PageN]" HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt"/>
  37. <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"/>
  38. </PageFooterBand>
  39. </ReportPage>
  40. </Report>