Feature Request: Make UI5 controllers more print-friendly
See original GitHub issueSAPUI5/OpenUI5 version: 1.70
Browser/version (+device/version): Chrome, Firefox
Let say, I have a long table with items, e.g.: https://openui5nightly.hana.ondemand.com/test-resources/sap/m/demokit/tutorial/worklist/07/webapp/test/mockServer.html, and I would like to get/print a PDF-report with items of this table.
Like most of the enterprise reports, such PDF should contain:
- header with the corporate logo, report title, brief description, and contact info
- a table itself with data, supporting paginations
- footer with some legal notice
Currently, I can either print the whole page «as is» with a lot of irrelevant data (e.g., UI controllers) or try to customize the report by using standard HTML/browser approaches like document.body.innerHTML
and window.print()
, but these techniques don’t solve the pagination issue and aren’t so fast/easy-to-implement.
It would be great if UI5 data-containers (e.g. sap.m.List
and sap.m.Table
) will be more print-friendly by having special built-in print-friendly CSS-mode. Is it possible to implement some print-wrapper for data containers to bring printing functionality out-of-box?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
In my perception export data to PDF format and ability to design PDF/XLSX reports with page header and footer, page counter, etc… is a basic request. All OPENUI developers would love to have simple report control.
This issue will be covered in BLI FIORITECHP1-13991 and BLI FIORITECHP1-13992.