Export(pdf/csv/word/xlsx) and Print feature request in q-table
-
Do you mean to generate table in those formats you have listed on the client-side and to return as downloadable objects?
-
It would be nice to have such capabilities in q-table, but I’m not aware of such.
In the meantime, for export to Excel, I have written backend code (based on the data that also feeds q-table at the frontend). That backend code reads the data from the database (very similar to the code that reads the data for the q-table) in JSON format, then uses a Node package json2csv to convert it to csv, then writes the csv to a file that can be downloaded to the frontend. At the frontend, the user can import that csv file in Excel, and save the imported csvfile in native xlsx format or in pdf format using Excel “save as”, if desired.
Requires some coding, but isn’t overly difficult through the package mentioned, https://www.npmjs.com/package/json2csv
-
I’m not looking to export or have a downloadable version, it’s simply that I have a table that should require 16 pages were it to be printed out, but ctrl + P won’t show anything past the screen view
-
@rstoenescu is it considered in future updates?
-
@jitendra16 theres an example for that in the docs already.
-
@metalsadman That is exporting CSV only
-
-
@jitendra16 thats should give you a starting point as to how other format you use, there are many libs out there that you can use, what you just need are to extract the data.
-
@metalsadman I am already doing that but I was looking for a native quasar way. Thank you.
-
did anyone here found a way to export anything other than table to pdf ?