How do I remove the User Name in the header when I print a .MSG

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am printing lots .msg files from various individual in the company.
I have writtena little looping program in Visual basic to print out all the
..MSG files in a directory. My process appears to work fine. The problem is
that I have .msg files from many individuals. When I run my code it prints
out the email message but I am getting information that was not on the
orginal email message - A header with my Outlook user name.
So the print out looks like this:

USER NAME
_____________________________________
FROM:
SENT:
Etc... (the rest looks correct).

What I want to get ride of when I print the email message out is that header
information. There is no need to include the work station's default USER
NAME form. outlook as it most likely has nothing to do with the .MSG file
loaded.

Sample code as follows:

Public Sub printmsg()
Dim myOutlookApp As Object
Set myOutlookApp = CreateObject("Outlook.Application")

Dim PrintMessage

Set PrintMessage= myOutlookApp.CreateItemFromTemplate(theemail2print)
PrintMessage.PrintOut

Set myOutlookApp = Nothing
Set PrintMessage= Nothing
End Sub

How can I get ride of the local outlook USERNAME header that is appearing
the print out?
 
Am Tue, 27 Sep 2005 13:37:21 -0700 schrieb jimr_123456789:

Unfortunately there´s no way to change the way OL is printing the
e-mail. You could automate Word instead, copy just the infos you want to
have and print that document.
 
Back
Top