1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    23
    Vote Rating
    0
    Answers
    4
    adanali is on a distinguished road

      0  

    Default Answered: Panel Printing (?)

    Answered: Panel Printing (?)


    I use Ext JS 4.2. In my project, i want to make a buton to print a panel in my viewport. I found something to print grid and tree, but it doesn't print a panel. Is it possible?

  2. Right, there's no way to just print "part" of a page, unless you setup specific print media for only that panel. You need to extract out the relevant part and print that.

  3. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,168
    Vote Rating
    674
    Answers
    474
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    You could use phantomjs to generate an image:

    https://github.com/ariya/phantomjs/wiki/Screen-Capture
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  4. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    23
    Vote Rating
    0
    Answers
    4
    adanali is on a distinguished road

      0  

    Default


    It captures whole site view, not only my one of panel in my viewport. It looks like that it isn't different from
    Code:
    window.print()

  5. #4
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,168
    Vote Rating
    674
    Answers
    474
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      1  

    Default


    Right, there's no way to just print "part" of a page, unless you setup specific print media for only that panel. You need to extract out the relevant part and print that.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  6. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    23
    Vote Rating
    0
    Answers
    4
    adanali is on a distinguished road

      0  

    Default


    Thank you for your answers.

Thread Participants: 1

Tags for this Thread