Integrating XLS output download with TDMobile

Discussion forum about all things TD Mobile.
a_sivababu
India
Posts: 483
Joined: 10 Mar 2017, 08:46
Location: Chennai,India

Integrating XLS output download with TDMobile

Post by a_sivababu » 03 Sep 2019, 08:27

Hi,
As you know, Report Designer is currently supporting to view in HTML and PDF output but it does not support to download in XLS output.

To support XLS output, there is an amazing opensource library excelljs (https://www.npmjs.com/package/exceljs) to write a very nice output in XLS with all formatting and then you can use File Saver (https://www.npmjs.com/package/file-saver/v/1.3.2) library to download it from the browser. I have just included below cdn hosted JS library and created the XLS report. it works very good.

https://cdnjs.cloudflare.com/ajax/libs/ ... ver.min.js
https://cdnjs.cloudflare.com/ajax/libs/ ... ljs.min.js


FYI - JSZip library (https://www.npmjs.com/package/jszip) can be used if you want to zip and download it from the browser.

Happy to support if you have any doubt.

Thanks
Siva A

Return to “General Discussion”

Who is online

Users browsing this forum: [Ccbot] and 0 guests