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?
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?