Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing functionality using javascript

 
lokesh pushpa
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
I have an requirement on printing functionality:

I have a webpage, there i am keeping one print button and using window.print(), i am able to print.
But here i am not getting exact size fitted into the potrait page. Some alignment issues are coming while printing the
page.

Quries:
1. How to capture the window features
2. How to adjust the margins using javascript
3. How to fit into a single page.

If any grammer mistakes are there please excuse me.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JavaScript can not control the print settings.
CSS3 has some print settings, but hardly any browser supports them.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic