We use RPCManager.exportContent for PDF exports and Canvas.showPrintPreview for printing.
But when we export (or print) listgrids that spans mutiple pages, we don't get repeating headers.
For our understanding both functionality are implemented using smartclient components' ability to generate printing html.
Additionaly flying saucer is used on the backend to generate PDF files for that html.
I was able to repeat headers in a generated PDF by manually modifying the html so that the <tr> element holding column names is moved from <tdata> to a new <thead>, and using "-fs-table-paginate" css property. The only drawback is that apparently this css property turns off the "border-collapse" behavior on flying saucer r8 (see https://code.google.com/p/flying-saucer/issues/detail?id=89).
I also tried to use "display: table-header-group" without success.
What could I do?
But when we export (or print) listgrids that spans mutiple pages, we don't get repeating headers.
For our understanding both functionality are implemented using smartclient components' ability to generate printing html.
Additionaly flying saucer is used on the backend to generate PDF files for that html.
I was able to repeat headers in a generated PDF by manually modifying the html so that the <tr> element holding column names is moved from <tdata> to a new <thead>, and using "-fs-table-paginate" css property. The only drawback is that apparently this css property turns off the "border-collapse" behavior on flying saucer r8 (see https://code.google.com/p/flying-saucer/issues/detail?id=89).
I also tried to use "display: table-header-group" without success.
What could I do?
Comment