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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controling Page Margins

Status
Not open for further replies.

dakota81

Technical User
May 15, 2001
1,691
US
I'm working with ScriptX from to use their free tools to set page margins in IE. It's working great, but I would like to get around one of the options not available. The margins cannot be set greater than the minimum margin required by the currently selected (default) printer.

Is there maybe another tool out there that will let me force the page margin settings? We've got an HP Laserjet as the primary printer which has a quarter inch top margin. We've got another Zebra label printer, which can print edge to edge in both directions, but I cannot set the margin through code to be zero. May not sound like much, but when our labels are just one inch high, losing a quarter inch is pretty significant. And it would be too diffult to set the printer & page margins manually before every print job sent to the label printer.

Is there any other software plug-ins out there? We can get by with ScriptX, but obviously if there is something else better then I'd like to look into it.
 
dakota81,

You're saying that a webpage with all margins set to zero will be printed to the edge of the paper...?! I thought it wouldn't. However, given your information here's what I would do:

Make a "print" webpage (just for the purpose of printing) with no margins:

Code:
<BODY LEFTMARGIN=&quot;0&quot; RIGHTMARGIN=&quot;0&quot; TOPMARGIN=&quot;0&quot; BOTTOMMARGIN=&quot;0&quot;>

Try to increase the margin settings until the hardcopy matches the labels you're printing on. I'm not sure that it will work on any printer though?!

Good luck §;O)


Jakob
 
The margins set in the body tag take effect after the &quot;Page Setup&quot; margins; thus there still is a quarter inch border.
 
Okay, so what you wanna do is find out if you can control the (print) page setup with a script?

I'm not sure if you can accomplish that with a script. Maybe you can with an applet?!

Let's see if anyone else knows!

Good luck §;O)


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top