dcsimg
www.webdeveloper.com
Results 1 to 2 of 2

Thread: Need to print an HTML string

  1. #1
    Join Date
    Oct 2011
    Posts
    2

    Need to print an HTML string

    Hi,

    I'm working with the Google Web Toolkit and I need to be able to print a specific panel (not the whole window) when the user clicks on the print button. I am able to set a variable containing the entire panel as an HTML string and what I need to figure out is how to send it to a printer, not as a string of HTML, but rather the panel that the HTML would render.

    Is that even possible?

    Thanks,

    Rob Tanner
    Linfield College

  2. #2
    Join Date
    Feb 2006
    Posts
    2,927
    open a new window, document.write the innerHTML string, call print from the new window.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles