Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Print in A5 size

 
Deeps Mistry
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I have a jsp page with a Print button on it. On click of the print button i want to do the following:
1) remove headers and footers.
2) print the page on A5 size paper.

Thanks.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is only supported in CSS3, which most browsers do not support.

Eric
 
Deeps Mistry
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:It is only supported in CSS3, which most browsers do not support.

Eric


so i will have to select the page size every time i click on print button?
Also, cant i remove headers/footers in html on click of print button?


Thanks
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The headers and footers.

If you are talking about the page number, address, etc, you can not remove that. That is a browser setting that has to be removed by the user.

If you really need to control the look and feel, you may want to generate a pdf version and have the user print that.

If you are looking at IE only, there are ActiveX controls that can do most of this. Problem is most places have ActiveX disabled.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic