Generate PDF and Excel using Javascript (Client side) - Stack Overflow

Is there a client side Javascript framework similar to jasper report in Java.My requirement is to gener

Is there a client side Javascript framework similar to jasper report in Java.My requirement is to generate both PDF and Excel at client side(browser) without doing it at server side. I have found that there are javascript libraries like JsPDF and PDFkit to generate PDF and different library for generate Excel which make the development effort much harder.I want some thing exactly similar to what is done by jasper report.Also if it can be added using NPM without manual importing to the code and use it then it is much suitable for my requirement.

Is there a client side Javascript framework similar to jasper report in Java.My requirement is to generate both PDF and Excel at client side(browser) without doing it at server side. I have found that there are javascript libraries like JsPDF and PDFkit to generate PDF and different library for generate Excel which make the development effort much harder.I want some thing exactly similar to what is done by jasper report.Also if it can be added using NPM without manual importing to the code and use it then it is much suitable for my requirement.

Share Improve this question edited Dec 17, 2017 at 8:02 Cœur 38.8k25 gold badges206 silver badges278 bronze badges asked May 4, 2017 at 8:54 dinesh senartnedinesh senartne 9252 gold badges9 silver badges9 bronze badges 1
  • 1 datatables/extensions/buttons/examples/initialisation/… – Axel Richter Commented May 4, 2017 at 8:59
Add a ment  | 

4 Answers 4

Reset to default 1

i believe jquery datatable es with all you need check it out https://datatables/extensions/buttons/examples/initialisation/export.html

I am afraid you have to use two separate libraries that best fit your needs, one for PDF and another for Excel. If you think about it, it makes sense.

It is a huge undertaking to render PDFs with plain Javascript, just look at the plexity of PDF.js alone! Excel is no different. These are plex formats.

Your use case is to render PDF and Excel. Somebody else might want to render PDF and DOC. You get the idea, there are tons of different formats out there, and there is no single library to handle them all. Even if someone had enough resources to build something like that, it would probably be broken up into modules that you can pick and choose based on your needs. A single framework would be too big to be practical for the web.

Thanx Fadi and Axel for your prompt response.Yes the solution you have mentioned is a good one which is not known by me.There is a limitation in that solution when it is going to be used for my requirement.Refer the following screen shot of the report that I have to generate as PDF and Excel using javascript library.In that report it is not only the data table which need to be included to the document.But also some detail on the top and a logo.Also the application is developed using EmberJS and this jquery table plugin cant be used since we are using the Ember table which cant be replaced by this Jquery table.Is there an alternative solutions except Jquery data table?

https://jsreport, for those still looking, check this out!

Credits: jsreport Author

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745359183a4624282.html

相关推荐

  • Generate PDF and Excel using Javascript (Client side) - Stack Overflow

    Is there a client side Javascript framework similar to jasper report in Java.My requirement is to gener

    4小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信