Need a way to use CSV as the data source



  • The reports our company will be printing can be extremely long. Expressing tabular data as JSON would be quite inefficient compared to CSV.

    How can I use CSV data as the data source?

    We're just about to purchase a license and this is something I need to get working to convince my boss to buy into this.



  • You can send your data in a single JSON prop and then use handlebars to split it and iterate

    {
        "myCsvData": "a;b;c\nx;y;z"
    }
    

    However, my guess is that chrome/pdf printing is in the end the most time-consuming operation and JSON/CSV inefficiency is just insignificant to deal with.


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.