suguy February 2016

SAP UI5 export table with charts

I am working in SAP UI 5 and right now we are exporting a table in csv format and we have some charts in our app and i have to export the table with the charts as well.

This is my code for simple csv export

var oExport = new sap.ui.core.util.Export({
exportType: new sap.ui.core.util.ExportTypeCSV({
    separatorChar: ";",
    charSet: "UTF-8",
}),
models: oModel,

rows: {
    path: "/" 
},
columns: {...});

The best suggestion i have found was downloading the csv with pictures of charts in zip, but this is not what i am looking for, somehow i need a .xls file and i have to hack charts into it with the table as well.

Answers


Kush Kashyap February 2016

Although you want it as an excel file but what about exporting your page as a pdf using some external libraries. I have never used it personally though so won't be able to help you with the details.

Check out this discussion Generate pdf from HTML in div using Javascript

Post Status

Asked in February 2016
Viewed 2,220 times
Voted 10
Answered 1 times

Search




Leave an answer