• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

printing current webpage...!

 
Renu Sadan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys, I've got a button "Print" on webpage. The page shows the billing statement . I want to print that billing statement but not the entire page. Is there any way i can restrict the whole page from getting printed and could just get the print for the billing statement table. Please help , and thanks in advance.



Regards
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rhenus Renu wrote:Guys, I've got a button "Print" on webpage. The page shows the billing statement . I want to print that billing statement but not the entire page. Is there any way i can restrict the whole page from getting printed and could just get the print for the billing statement table. Please help , and thanks in advance.

Regards


Normaly, you use a CSS that has print-prefix and then you just blank out all the things that should not be printed. Another way is to generate a PDF and let the user print or save that one.
 
Renu Sadan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Ove Lindström : Can you please explain how to make it to pdf? And how can one download it?
 
Ove Lindström
Ranch Hand
Posts: 326
Android Firefox Browser Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Renu Sadan wrote:@Ove Lindström : Can you please explain how to make it to pdf? And how can one download it?


Use iReport, Jasperreports or any other PDF-generator library to do that. But easiest way, if you already have a HTML page is to create a new css that strips the "non printable" areas.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic