• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printer friendly option in javascript

 
Kannan BLR
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we craeted a JSP page report. getting values from database & displayed the values as a report in JSP Page. "print" option of this page is not printing entire report using javascript code like window.print().

when i click "print" hyperlink text, entire report will open in new page where i should use print preview for that page.

please give suggestion to me.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65216
95
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Kannan", please check your private messages.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Need to use window.open and on the onload of that page you call window.print()

OR

You can look into CSS Print Media

Eric
 
Steph Sam
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
[Content removed: please do not post the same question in more than one place]
[ January 21, 2008: Message edited by: Bear Bibeault ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic