Odd-Even Pages, Mirror Margins.frx 5.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Report ScriptLanguage="CSharp" ReportInfo.Description="Demonstrates how to use different headings and margins on odd and even pages. To do this:&#13;&#10;- go to the &quot;File|Page Setup...&quot; menu to define the paper margins. Turn on &quot;Mirror margins on even pages&quot; checkbox if needed;&#13;&#10;- add a Child band to the page header. Place objects on the page header and its child, both with the same text &quot;[PageN]&quot;;&#13;&#10;- select the page header, go to the &quot;Properties&quot; window and set the &quot;PrintOn&quot; property to &quot;FirstPage, LastPage, OddPages&quot;;&#13;&#10;- select the child band and set the &quot;PrintOn&quot; property to &quot;FirstPage, LastPage, EvenPages&quot;." ReportInfo.Created="01/17/2008 03:55:42" ReportInfo.Modified="03/28/2023 16:35:06" 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="Categories" ReferenceName="NorthWind.Categories" DataType="System.Int32" Enabled="true">
  8. <Column Name="CategoryID" DataType="System.Int32"/>
  9. <Column Name="CategoryName" DataType="System.String"/>
  10. <Column Name="Description" DataType="System.String"/>
  11. <Column Name="Picture" DataType="System.Byte[]" BindableControl="Picture"/>
  12. </TableDataSource>
  13. <TableDataSource Name="Products" ReferenceName="NorthWind.Products" DataType="System.Int32" Enabled="true">
  14. <Column Name="ProductID" DataType="System.Int32"/>
  15. <Column Name="ProductName" DataType="System.String"/>
  16. <Column Name="SupplierID" DataType="System.Int32"/>
  17. <Column Name="CategoryID" DataType="System.Int32"/>
  18. <Column Name="QuantityPerUnit" DataType="System.String"/>
  19. <Column Name="UnitPrice" DataType="System.Decimal"/>
  20. <Column Name="UnitsInStock" DataType="System.Int16"/>
  21. <Column Name="UnitsOnOrder" DataType="System.Int16"/>
  22. <Column Name="ReorderLevel" DataType="System.Int16"/>
  23. <Column Name="Discontinued" DataType="System.Boolean"/>
  24. <Column Name="EAN13" DataType="System.String"/>
  25. </TableDataSource>
  26. <Relation Name="CategoriesProducts" ReferenceName="NorthWind.CategoriesProducts" ParentDataSource="Categories" ChildDataSource="Products" ParentColumns="CategoryID" ChildColumns="CategoryID" Enabled="true"/>
  27. </Dictionary>
  28. <ReportPage Name="CatalogPage" RightMargin="20" MirrorMargins="true" Watermark.Font="Arial, 60pt" ResetPageNumber="true">
  29. <PageHeaderBand Name="PageHeader1" Width="680.4" Height="37.8" PrintOn="FirstPage, LastPage, OddPages" FirstRowStartsNewPage="true">
  30. <TextObject Name="Text4" Left="585.9" Width="94.5" Height="18.9" Text="[PageN]" HorzAlign="Right" Font="Segoe UI, 9pt"/>
  31. <LineObject Name="Line1" Top="18.9" Width="680.4" Border.Color="LightGray" Border.Width="2"/>
  32. <ChildBand Name="Child1" Top="39.8" Width="680.4" Height="37.8" PrintOn="FirstPage, LastPage, EvenPages">
  33. <LineObject Name="Line2" Top="18.9" Width="680.4" Border.Color="LightGray" Border.Width="2"/>
  34. <TextObject Name="Text16" Width="94.5" Height="18.9" Text="[PageN]" Font="Segoe UI, 9pt"/>
  35. </ChildBand>
  36. </PageHeaderBand>
  37. <DataBand Name="Data1" Top="79.6" Width="680.4" Height="103.95" Fill.Color="Gainsboro" DataSource="Categories" KeepDetail="true">
  38. <TextObject Name="Text1" Left="160.65" Top="9.45" Width="302.4" Height="18.9" Text="[Categories.CategoryName]" Font="Segoe UI, 10pt, style=Bold"/>
  39. <PictureObject Name="Picture1" Left="9.45" Top="9.45" Width="141.75" Height="85.05" DataColumn="Categories.Picture"/>
  40. <TextObject Name="Text2" Left="160.65" Top="37.8" Width="302.4" Height="56.7" Text="[Categories.Description]" Font="Segoe UI, 9pt"/>
  41. <DataBand Name="Data2" Top="215.9" Width="680.4" Height="18.9" DataSource="Products">
  42. <TextObject Name="Text5" Width="245.7" Height="18.9" Text="[Products.ProductName]" VertAlign="Center" Font="Segoe UI, 9pt"/>
  43. <TextObject Name="Text7" Left="245.7" Width="122.85" Height="18.9" Text="[Products.UnitPrice]" Format="Currency" Format.UseLocale="true" Format.DecimalDigits="2" HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt"/>
  44. <TextObject Name="Text9" Left="368.55" Width="122.85" Height="18.9" Text="[Products.UnitsInStock]" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt"/>
  45. <CheckBoxObject Name="CheckBox1" Left="529.2" Width="18.9" Height="18.9" Checked="false" DataColumn="Products.Discontinued"/>
  46. <DataHeaderBand Name="DataHeader1" Top="185.55" Width="680.4" Height="28.35">
  47. <TextObject Name="Text6" Width="245.7" Height="28.35" Text="Product name" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
  48. <TextObject Name="Text8" Left="245.7" Width="122.85" Height="28.35" Text="Unit price" HorzAlign="Right" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
  49. <TextObject Name="Text10" Left="368.55" Width="122.85" Height="28.35" Text="Units in stock" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
  50. <TextObject Name="Text12" Left="491.4" Width="94.5" Height="28.35" Text="Discontinued" HorzAlign="Center" VertAlign="Center" Font="Segoe UI, 9pt, style=Bold"/>
  51. </DataHeaderBand>
  52. <DataFooterBand Name="DataFooter1" Top="236.8" Width="680.4" Height="37.8"/>
  53. <Sort>
  54. <Sort Expression="[Products.ProductName]"/>
  55. </Sort>
  56. </DataBand>
  57. </DataBand>
  58. <PageFooterBand Name="PageFooter2" Top="276.6" Width="680.4" Height="28.35" Fill.Color="WhiteSmoke">
  59. <TextObject Name="Text19" 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"/>
  60. </PageFooterBand>
  61. </ReportPage>
  62. </Report>