Editing the <format> block

To edit the <format> block:

  1. Edit the XML definition file in a text editor (or an XML editor).
  2. Add the title in the <header> block:
    <header>
      <constant>Payroll Report</constant>
      <new_line/>
    </header>
  3. Add the required data in the <body> block:
    <body>
      <constant> : </constant>
      <string field='emp_firstname' pad_right='20' />
      <constant> ; </constant>
      <string field='emp_lastname' pad_right='20' />
      <constant> ; </constant>
      <string field='emp_name' pad_right='20' />
      <constant> ; </constant>
      <string field='dept_name' pad_right='20' />
      <constant> ; </constant>
      <string field='wrkd_work_date' format='yyyy-MM-dd' />
      <constant> ; </constant>
      <string field='wrkd_minutes' format='00000.00' />
      <constant> ; </constant>
      <string field='wrkd_rate' format='00000.00' />
      <constant> ; </constant>
      <string field='earn_code' format='000' />
      <new_line/>
    </body>

    The characters inside the <constant> tag are the delimiters. The <string> fields are padded 20 spaces to the right. For date and numeric fields, you must specify the format string. See Formatting reference.

  4. Add the <footer> block:
    <footer>
      <constant>End Payroll Report</constant>
      <new_line/>
    </footer>
  5. Save the file.