Feature Request: Make UI5 controls more print-friendly

Open
#2,629 11 comments 5 reactions 1 assignee View on GitHub

@simlin is already working on this.

Since Sep 5, 2019.

Assessment

This issue has not been assessed yet.

Description

enhancement in progress

SAPUI5/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?

Dominant language
JavaScript
Stars
3.3k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from UI5/openui5

All issues in UI5/openui5

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.