Skip to content
Private alpha
Documentation — Reports

Documentation

Reports

A report is a document the application prints or exports: an invoice, a customer list, labels. The Reports tab lays it out on a page drawn to scale, in bands repeated for each record.

Report settings

With no element selected, the inspector sets up the report:

SettingPurpose
Name, TitleETAT_Clients, "Customer list" (the title is translatable)
Sourcethe entity whose records are printed
Filteran optional Argile condition: Client.Actif
Sortthe sort fields, separated by commas; - for descending order: Ville, -Age
FormatA4, A3, A5 or Letter
OrientationPortrait or Landscape
Marginsin millimeters (15 by default)

The ▶ button produces the report's PDF preview, with sample values in place of the data.

Bands

BandPrinted
Report headeronce, at the top of the first page
Page headerat the top of each page
Group headereach time the value of the group field changes
Bodyonce per record
Group footerat the end of each group
Page footerat the bottom of each page
Report footeronce, after the last record

"Add a band" adds one; each band has its own height, in millimeters. A group breaks the list each time a field's value changes (for example, a subtitle per city, with a subtotal).

Elements

The palette places elements on the bands:

ElementShows
Texta fixed text (translatable)
Fieldthe value of a field of the record
Formulathe result of an Argile expression: Commande.Montant * 1.2
Totalthe sum, average, count, minimum or maximum of a field, per group or for the whole report
Imagea PNG or JPEG image
Line, Rectanglelines and frames
Page no.the page number
Datethe print date
BarcodeEAN-13 for 12 or 13 digits, Code 128 for any other text
QR codea QR code, for example the address of a record

Each element has its position and size (in millimeters), its font (size, bold, italic), its alignment, a border, a text color and a background color. The format shapes numbers and dates: #,##0.00 €, DD/MM/YYYY.

Barcodes and QR codes can show a field or a formula: an item's code, an invoice number, the address of a page.

Printing and exporting

In the produced application, a report is printed or exported by the "Print a report" and "Export a report" actions (see Interactions), or in Argile:

ETAT_Clients.preview()                   // preview, then print
ETAT_Clients.print()
ETAT_Clients.export("customers.xlsx")    // the format follows the extension
FormatExtensionContent
PDF.pdfthe exact layout, fonts embedded
OpenDocument text.odtthe layout, editable in LibreOffice Writer
OpenDocument spreadsheet.odsthe data as a table, with numbers you can calculate with
OpenDocument presentation.odpone slide per page
OpenDocument drawing.odgthe layout, as a drawing
Word.docxthe layout, editable in Word
Excel.xlsxthe data as a table, with numbers you can calculate with
PowerPoint.pptxone slide per page

All these formats are open and standardised (OpenDocument ISO/IEC 26300, Office Open XML ISO/IEC 29500): LibreOffice, Microsoft Office and most office suites open them. Images, barcodes and QR codes appear in every layout format; spreadsheets (ODS, XLSX) keep only the data.