1. #1
    Sencha User
    Join Date
    Apr 2013
    Posts
    23
    Answers
    4
    Vote Rating
    0
    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
    16,833
    Answers
    453
    Vote Rating
    609
    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
    Answers
    4
    Vote Rating
    0
    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
    16,833
    Answers
    453
    Vote Rating
    609
    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
    Answers
    4
    Vote Rating
    0
    adanali is on a distinguished road

      0  

    Default


    Thank you for your answers.

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi