# `KugarTemplate`

The `KugarTemplate` element defines report attributes relating to page size, orientation, and margins.

    <!ELEMENT KugarTemplate (ReportHeader, PageHeader, Detail, PageFooter, ReportFooter)>
    <!ATTLIST KugarTemplate
    PageSize        CDATA #REQUIRED
    PageOrientation CDATA #REQUIRED
    TopMargin       CDATA #REQUIRED
    BottomMargin    CDATA #REQUIRED
    LeftMargin      CDATA #REQUIRED
    RightMargin     CDATA #REQUIRED>

Elements

  The `KugarTemplate` element contains the following required elements:

  `ReportHeader`

    The `ReportHeader` element defines report sections that are usually printed at the beginning of the report.

  `PageHeader`

    The `PageHeader` element defines report sections that are usually printed at the top of every page of the report.

  `Detail`

    The `Detail` element defines the report section that contains the report data.

  `PageFooter`

    The `PageFooter` element defines report sections that are usually printed at the end of the every page in the report.

  `ReportFooter`

    The `ReportFooter` element defines report sections that are usually printed at the end of the report.

Attributes
  `PageSize`

    Sets the size of the report page. The following values are available:

    Value | Page Size
    --- | ---
    0 | A4
    1 | B5
    2 | Letter
    3 | Legal
    4 | Executive
    5 | A0
    6 | A1
    7 | A2
    8 | A3
    9 | A5
    10 | A6
    11 | A7
    12 | A8
    13 | A9
    14 | B0
    15 | B1
    16 | B2
    17 | B3
    18 | B4
    19 | B6
    20 | B7
    21 | B8
    22 | B9
    23 | Comm10E
    24 | DLE
    25 | Folio
    26 | Ledger
    27 | Tabloid

  `PageOrientation`

    Sets the report page orientation.

    Value | Orientation
    --- | ---
    0 | Portrait
    1 | Landscape

  `TopMargin`

    Sets the top margin of the report page

  `BottomMargin`

    Sets the bottom margin of the report page

  `LeftMargin`

    Sets the left margin of the report page

  `RightMargin`

    Sets the right margin of the report page