cancel
Showing results for 
Search instead for 
Did you mean: 

How to to Use Print Functionality in SAPUI5 Applcation?

Jayakrishnan
Active Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member365727
Active Contributor

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

amita_jain2
Participant
0 Kudos

This is not help ful if we have to print Gantt Chart and other UI5 controls? can you suggest anything for Gantt chart and other UI5 controls to print as pdf.

Thanks in Adv.