Report Template Generation

Iotellect Server can automatically generate Report Templates from the data contained in any Data Table. Before a template is generated, it is usually possible to specify its properties:

Property

Name

Type

Description

Template

template

Integer

Type of report template: Simple (good for black and white printing) or Colored.

Title

title

String

Report Title. Appears in the top of the first page.

Paper Size

paper

String

Specifies paper size for printing.

Orientation

orientation

Integer

Portrait/Landscape orientation for printing.

Row Height

rowHeight

Integer

Height of every row in the main part of report.

Font Size in Header

headerFontSize

Integer

Font size for column titles.

Font Size in Body

bodyFontSize

Integer

Font size for report contents.

Stretch template elements to fit contents

stretch

Boolean

Indicates that row height may be increased to put elements that don't fit in a standard row. If disabled, elements that don't fit in their row will be hidden.

Fields

fields

Data Table

Configuration of report fields:

  • Visible. Flag indicating that Data Table field will be shown in the report.

  • Relative Width. A floating point value giving a hint for column width calculation. If relative width of one column is two times larger than relative width of the other column, first column will be twice as wide in the report template.

  • Column Header. Report column header.

Grouping

grouping

String

If enabled, report lines will be grouped by selected field.

Report Format

reportFormat

String

File format of the generated report. Possible values: pdf, rtf, odt, html, xls, csv, xml.

Example

Source Data preview for Report:

Resulting Report (Simple template):

Was this page helpful?