I'm working with the msOutL9.olb module to automate various Outlook functions inside my VB 6 program. One of these functions is to print an email message. It is a relatively easy command to execute but when I go to the printer to pick up the output, I find that 4 copies of the same message is printed. I only want one copy not 4.
Is there something to reset in the default printer settings?
Here is my code (simple and sweet) that tells outlook to print the message.
------------------------
Private Sub PrintEmail(ByVal intSelRow As Integer)
Dim olThisItem As MailItem
On Error GoTo ErrHandler
'get specific item
Set olThisItem = AllMessages.Item(intSelRow)
'print me
olThisItem.PrintOut
Set olThisItem = Nothing
Exit Sub
ErrHandler:
MsgBox "oops! in PrintEmail"
End Sub
NOTE: AllMessages is a collection of all Inbox folder messages previously recovered in another module.
------------------------
Any ideas or hints would be welcome.
Thank you,
Wolfgang
Is there something to reset in the default printer settings?
Here is my code (simple and sweet) that tells outlook to print the message.
------------------------
Private Sub PrintEmail(ByVal intSelRow As Integer)
Dim olThisItem As MailItem
On Error GoTo ErrHandler
'get specific item
Set olThisItem = AllMessages.Item(intSelRow)
'print me
olThisItem.PrintOut
Set olThisItem = Nothing
Exit Sub
ErrHandler:
MsgBox "oops! in PrintEmail"
End Sub
NOTE: AllMessages is a collection of all Inbox folder messages previously recovered in another module.
------------------------
Any ideas or hints would be welcome.
Thank you,
Wolfgang