Skip to Content

How to to Use Print Functionality in SAPUI5 Applcation?

Hi Everyone,

We are working on Custom SAPUI5 Application Development, which is used to Display the data in a Graphical Chart(we are using Stacked Column - viz chart), and Table(sap.m.Table). In our application, we need to include Print Functionality. As of now, I Displayed the Chart at the Top, and Table at the Bottom.. Below I have mentioned my questions.

1. How do I achieve the Print Functionality in SAPUI5? Do we have any UI5 controls?

2. I have placed the Download/Export button in the Chart Toolbar Section. with that can I export the Chart Image as a PDF?

3. I have placed the Download/Export button in the Table Toolbar Section. with that can I export the Table Data as a PDF (Not as Excel/CSV)?

4. Do we have any Standard Control to export the Content as a PDF? I have seen an Opensource library jsPDF which is used to export the table content as PDF. Can I use that one or Do we have any other Standard Controls?

Image:

Please help on us to proceed further.

Thank you,

Regards,

JK.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Jun 25, 2018 at 04:35 PM

    AFAIK there is no standard control to create PDF..

    best option is to use jsPDF library

    you can export chart content as SVG graphic ...then use jsPDF to create PDF

    Add comment
    10|10000 characters needed characters exceeded