No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Export(pdf/csv/word/xlsx) and Print feature request in q-table

    Framework
    9
    16
    3412
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jitendra16 last edited by

      Its common to have ‘export’ and ‘print’ table data. This is missing feature in q-table, can we have it?

      1 Reply Last reply Reply Quote 3
      • digiproduct
        digiproduct last edited by

        I would like this too … Export(pdf/csv/word/xlsx

        It does not necessarily need to be ALL of these … PDF, CSV, TXT, and XLSX … although if WORD was possible too it would be fantastic.

        1 Reply Last reply Reply Quote 0
        • prashant
          prashant last edited by

          I also searching for this if anyone has solution please share

          1 Reply Last reply Reply Quote 1
          • B
            brunocss last edited by

            Discovered how export to pdf?

            1 Reply Last reply Reply Quote 0
            • J
              jitendra16 last edited by

              create native html table with style=“display:none” and use available solution on google.

              1 Reply Last reply Reply Quote 0
              • V
                Varju last edited by

                I’m having an issue where all print previews of my table rows get cut off above and below the viewscreen at the time of a ctrl + P command…been banging my head on this one for over a week playing with CSS properties, but no luck yet.

                1 Reply Last reply Reply Quote 0
                • dmitry.polushkin
                  dmitry.polushkin last edited by

                  Do you mean to generate table in those formats you have listed on the client-side and to return as downloadable objects?

                  1 Reply Last reply Reply Quote 0
                  • M
                    Mickey58 last edited by Mickey58

                    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

                    1 Reply Last reply Reply Quote 0
                    • V
                      Varju last edited by

                      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

                      1 Reply Last reply Reply Quote 0
                      • J
                        jitendra16 last edited by

                        @rstoenescu is it considered in future updates?

                        metalsadman 1 Reply Last reply Reply Quote 0
                        • metalsadman
                          metalsadman @jitendra16 last edited by

                          @jitendra16 theres an example for that in the docs already.

                          J 2 Replies Last reply Reply Quote 0
                          • J
                            jitendra16 @metalsadman last edited by

                            @metalsadman That is exporting CSV only

                            metalsadman 1 Reply Last reply Reply Quote 0
                            • J
                              jitendra16 @metalsadman last edited by

                              @metalsadman https://quasar.dev/vue-components/table#Example--Export-to-csv

                              1 Reply Last reply Reply Quote 0
                              • metalsadman
                                metalsadman @jitendra16 last edited by

                                @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.

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  jitendra16 @metalsadman last edited by

                                  @metalsadman I am already doing that but I was looking for a native quasar way. Thank you.

                                  1 Reply Last reply Reply Quote 0
                                  • G
                                    ghada last edited by

                                    did anyone here found a way to export anything other than table to pdf ?

                                    1 Reply Last reply Reply Quote 1
                                    • First post
                                      Last post