Results 1 to 5 of 5

Thread: Panel Printing (?)

  1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    23
    Answers
    4
    Vote Rating
    0
      0  

    Default 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 User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,006
    Answers
    726
    Vote Rating
    936
      0  

    Default

    You could use phantomjs to generate an image:

    https://github.com/ariya/phantomjs/wiki/Screen-Capture
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  4. #3
    Sencha User
    Join Date
    Apr 2013
    Posts
    23
    Answers
    4
    Vote Rating
    0
      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 User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,006
    Answers
    726
    Vote Rating
    936
      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.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  6. #5
    Sencha User
    Join Date
    Apr 2013
    Posts
    23
    Answers
    4
    Vote Rating
    0
      0  

    Default

    Thank you for your answers.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •