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

Printing through IE

Status
Not open for further replies.

craigosa6033

Technical User
Sep 12, 2005
10
US
I am printing an html file which is being called up by my front-end application, but when I print, in order to get all the page to show up on the page- I have to go into page setup and set all the numbers to 0.

When I do, they default to:
left: .25
right: .25
top: .166
bottom: .166
Then my whole page prints correctly.

Is there anyway to code this so that the user doesn't have to manually modify their page setup settings in IE?

Here's my code:
<html>

<head>


<title>Customer Notification of Account Adjustment</title>

<Style> P.page { page-break-before: always } </Style></title>
<meta name="Account" content="000000002001642 01 36">
<meta name="Data" content="081005 00001249.00 00000000.80 00001249.80">
<meta name="Name" content=" ">
<meta name="Branch" content="00001">
<meta name="Image000" content="I361117.IDX 3 3 3 6 F A Page2.htm ">
<meta name="Image001" content="00000880/39" title="Credit&nbsp&nbsp&nbsp ">
<meta name="Image002" content="00000460/37" title="Deposit&nbsp&nbsp&nbsp ">
</head>
<style type="text/css" media="print">
<!--
body {
margin: 0;
float: none;}
-->
</style>
<body>

&nbsp<br>

<table border="0" cellpadding="0" cellspacing="0" width="660">
<tr>
<td width="55" align="left"></td>
<td width="385"><small><font face="Arial">XXXXXXXXXX</font></small></td>
<td width="120"><small><font face="Arial">Page:</font></small></td>
<td width="100" align="right"><small><font face="Arial">1</font></small></td>
</tr>
<tr>
<td width="55" align="left"></td>
<td width="386"><small><font face="Arial">XXXXXXXXXXXX</font></small></td>
<td width="120"><small><font face="Arial">Date:</font></small></td>
<td width="100" align="right"><small><font face="Arial">08/10/05</font></small></td>
</tr>
<tr>
<td width="55" align="left"></td>
<td width="385"><small><font face="Arial">xxxxxxxxxxx</font></small></td>
<td width="120"><small><font face="Arial">Account:</font></small></td>
<td width="100" align="right"><small><font face="Arial">xxxxxx</font></small></td>
</tr>
</tr>
</table>

<p>&nbsp<p>&nbsp<p>&nbsp<p>

<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="660">
<tr>
<td width="105" align="left"></td>
<td width="555" align="left"><small><font face="Arial"></font></small></td>
</tr>
<tr>
<td width="105" align="left"></td>
<td width="555" align="left"><small><font face="Arial"></font></small></td>
</tr>
<tr>
<td width="105" align="left"></td>
<td width="555" align="left"><small><font face="Arial">xxxxxxxxxxx</font></small></td>
</tr>
<tr>
<td width="105" align="left"></td>
<td width="555" align="left"><small><font face="Arial">xxxxxxxxxxxxxx</font></small></td>
</tr>
<tr>
<td width="105" align="left"></td>
<td width="555" align="left"><small><font face="Arial">xxxxxxxxxxxxxxxxxxxxxxxx</font></small></td>
</tr>
<tr>
<td width="105" align="left"></td>
<td width="555" align="left"><small><font face="Arial">xxxxxxxxxxxxxxxxxx</font></small></td>
</tr>
</table>
</center>
</div>

<p>
<hr>
<center><font face="Arial">Customer Notification of Account
Adjustment</font>
</center>
<p>

<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="0" width="660">
<tr>
<td width="30" align="left"></td>
<td width="200" align="left"><small><font face="Arial">xxxxxxxxxxxxx</font></small></td>
<td width="200" align="left"><small><font face="Arial">xxxxxxxxxxxxxx</font></small></td>
<td width="200" align="left"><small><font face="Arial">xxxxxxxxxxxxx</font></small></td>
<td width="30" align="left"></td>
</tr>
</table>
</center>
</div>
<hr>

<p align="justify"><font face="Arial">
<small>We have adjusted your account to correct an error in your deposit. For convenience,
we have provided the images of the deposit correction, including your deposit ticket and
the item(s) which caused the error. If you have any questions or need any assistance, please call
xxxxxxxxx. Thank you for doing business at xxxxxxxxxxxxxxxxx.</font></small></p>

<p>
<TABLE CELLSPACING=0 BORDER=0 CELLPADDING=7>
<TR>
<TD VALIGN="TOP" HEIGHT= 130>
<IMG src="C:\verbose\OB20F.JPG" SRC="C:\VERBOSE\OB12.JPG" SRC="D:\PREMIER\TEMP\OB5.JPG" " WIDTH=220 HEIGHT=100 BORDER=1 ALT="MZ:39;54:036;57:010117017932;-6:20050810;"><BR><FONT SIZE=-2><B>Credit&nbsp&nbsp&nbsp;xxxxx0</B><FONT></TD>
<TD VALIGN="TOP" HEIGHT= 130>
<IMG src="C:\verbose\OB210.JPG" SRC="C:\VERBOSE\OB13.JPG" SRC="D:\PREMIER\TEMP\OB6.JPG" " WIDTH=220 HEIGHT=100 BORDER=1 ALT="MZ:37;54:036;57:010117017512;-6:20050810;"><BR><FONT SIZE=-2><B>Deposit&nbsp&nbsp&nbsp;$xxxxxx</B><FONT></TD>
<TD VALIGN="TOP" HEIGHT= 130>
<IMG src="C:\verbose\OB211.JPG" SRC="C:\VERBOSE\OB14.JPG" SRC="D:\PREMIER\TEMP\OB7.JPG" " WIDTH=220 HEIGHT=100 BORDER=1 ALT="MZ:37;54:036;57:010117017512;-6:20050810;-10:1;"><BR><FONT SIZE=-2><B>Deposit&nbsp&nbsp&nbsp;xxxxxxx Back</B><FONT></TD>
</TABLE>
</body>
</html>


 
In this thread: thread215-1124410 there is reference to an ActiveX control that may be suited to your needs. This will only work in IE (which suits your problem).

Cheers,
Jeff


[tt]Jeff's Page [/tt][tt]@[/tt][tt] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top