Report FAQ

该文档是已过时的旧文档

The most complete and up-to-date documentation is the one of Banana Accounting Plus: Try it now

In this 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

document.getFooter().addFieldPageNr("alignright");
stylesheet.addStyle("pfoot", "text-align:right");

 

Can I print the total number of pages

No

 

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.

 

Share this article: Twitter | Facebook | LinkedIn | Email