Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IE window.print() problem

Status
Not open for further replies.

matojo2006

IS-IT--Management
Oct 24, 2007
1
US
I am using the javascript window.print() to print some reports from a small windows utility program. This program generates an HTML file and then calls window.print() to print the report.

We are printing using a dotmatrix printer and it uses a paper roll. There is no fixed paper size in this case. Is there a way I can adjust the paper size depending on the length of the content?

Currently, what is happening is, no matter whether the content is 1 line or 30 lines, the printer always ejects A4 size (or whatever is pre configured). How can I dynamically adjust the paper size settings through the program, before calling window.print()?

This is a machine dedicated for this purpose and it is acceptible to alter IE settings through the program.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top