Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose more poi methods #36

Open
tp-pitc opened this issue Oct 20, 2021 · 1 comment
Open

Expose more poi methods #36

tp-pitc opened this issue Oct 20, 2021 · 1 comment

Comments

@tp-pitc
Copy link

tp-pitc commented Oct 20, 2021

I would like to be able to set page numbers on the footer of an excel spreadsheet (and therefore to appear on a printout).
Code would have to be similar to:
var sheet = workbook.createSheet(sheet_title);//this works
var pageHeader = sheet.sheet.getHeader();//this works
pageHeader.setCenter("Test of a header);//this works
var pageFooter = sheet.sheet.getFooter();//this works
//the reccomended way according to apache poi is to use HeaderFooter.page() and HeaderFooter.numPages() but these are not exposed
pageFooter.setCenter("Page " + HeaderFooter.page() + " of " + HeaderFooter.numPages());//does not work of course
//so I have this palceholder at the moment
pageFooter.setCenter("Print date:" + new Date());//this works

Can we expose more methods?

@seanthomasdevlin
Copy link
Member

Hi Tom,

Under evaluation: https://support.servoy.com/browse/SVYX-358
Please subscribe to the support ticket for updates.

Thanks,
Sean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants