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

    Dashboard is printing in mobile device size (undesirable viewer port) but i want to be printing in desktop size

    Framework
    3
    6
    192
    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.
    • P
      phandera last edited by

      0

      I have been trying to print custom dashboard composed of high-charts, leaflet map and cards to fit one page using js but its printing in mobile view port. The problem is that when i print its printing in mobile size / view port which is making it to overflow to other pages instead of fitting to one page. After i failed printing i tried converting it to PDF using js-pdf but no fortunes.

      The Dashboard has built using Quasar and Vuejs

      Thanks for your assistance in advance

      1 Reply Last reply Reply Quote 1
      • F
        Filipinjo last edited by

        I have the same problem… Did you manage to fix it, or does anyone else have an idea how to solve this?

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

          Maybe try too add to your css:

          @page {
            margin: 0.25in;
            size: 8.5in 11in; 
          }
          

          If that doesn’t work, you could try to set the body width under the print rule, like:

          @media print {
            body {
              width: 8.5in;
              height: 11in;
            }
          }
          
          F 1 Reply Last reply Reply Quote 0
          • F
            Filipinjo @beets last edited by

            @beets I tried it both, but it’s still not working 😕 Thank you for an advice.

            1 Reply Last reply Reply Quote 0
            • F
              Filipinjo last edited by

              This worked:
              @page {
              size: 330mm 427mm;
              margin: 14mm;
              }
              I don’t know why mm worked and in not

              beets 1 Reply Last reply Reply Quote 0
              • beets
                beets @Filipinjo last edited by

                @Filipinjo Strange, but glad it worked anyway 🙂

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