DennisPost
asked on
Outlook does not print all self made html emails with the correct magins
We create emails via our inhouse vb6 application.
Html code is generated in the vb6 application, then a new outlook email is opened with the code.
.BodyFormat = olFormatHTML
.HTMLBody = HTMLCode
The latest one I created always prints with wide magins i.e. 25mm instead of 5mm
How can I adjust the code so that people who receive the emails do not have to manually adjust the margins to print the email as it should be viewed?
Or is this simply an Outlook 2003 configuration question?
I think it has something to do with the header. unfortunately my html skills aren't that well developed.
When printing from ie7 or firefox, all is well.
vb6 code and or usable code on request. (Might make the question a but intimidating....)
Cheers
Html code is generated in the vb6 application, then a new outlook email is opened with the code.
.BodyFormat = olFormatHTML
.HTMLBody = HTMLCode
The latest one I created always prints with wide magins i.e. 25mm instead of 5mm
How can I adjust the code so that people who receive the emails do not have to manually adjust the margins to print the email as it should be viewed?
Or is this simply an Outlook 2003 configuration question?
I think it has something to do with the header. unfortunately my html skills aren't that well developed.
When printing from ie7 or firefox, all is well.
vb6 code and or usable code on request. (Might make the question a but intimidating....)
Cheers
you can set page height, width, top margin, left margin in the html. and central alignment
ASKER
That's sounds useful, do have the code/ syntax for me?
something like..
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!--u can try with % to adjust the width and height
<table border="0" cellpadding="0" cellspacing="0" width="90%" height="80%" align="center">
-->
<table border="0" cellpadding="0" cellspacing="0" width="500" align="center">
<tr>
<td>
write whatever you like to send
</td>
</tr>
</table>
</body>
or align the message
align = left, center, right
valign = top,middle,bottom
align = left, center, right
valign = top,middle,bottom
<td align="center" valign="middle">
write whatever you like to send
</td>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.