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....)

Who is Participating?
DennisPostConnect With a Mentor Author Commented:
Turned out to be an outlook setting.
When creating a new email goto File | Page Setup
Change the left and right margins, then click the "Default...." button.

I have attached a picture.

you can set page height, width, top margin, left margin in the html. and central alignment

DennisPostAuthor Commented:
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">
write whatever you like to send

Open in new window

or align the message

align = left, center, right
valign = top,middle,bottom

<td align="center" valign="middle">
write whatever you like to send

Open in new window

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.