Report FAQ

Documentation •
Dans cet article

How can I set the orientation of the page and the margins

// Set landscape orientation
styleSheet.addStyle("@page", "size: landscape");
// Page margins top, right, bottom, left
styleSheet.addStyle("@page", "margin: 20mm 20mm 20mm 25mm");



How can I set the size of the page

// Set page size
styleSheet.addStyle("@page", "size: A5");


How can I set the margins of page header and footer

styleSheet.addStyle("phead", "margin-bottom:2em");
styleSheet.addStyle("pfoot", "margin-top:2em");


How can I print the page number on the right of the page footer

stylesheet.addStyle("pfoot", "text-align:right");


Can I print the total number of pages



I like a style implemented in a report of Banana Accounting, where can I get the used stylesheet?

In print preview export the report as html and look at the code. You will find the used styles.


Dites-nous comment nous pouvons mieux vous aider
Si les informations contenues dans cette page ne correspondent pas à ce que vous recherchez, ne sont pas suffisamment claires ou ne sont pas à jour, faites-nous savoir.

Partager cet article: Twitter | Facebook | LinkedIn | Email