Home All Groups Group Topic Archive Search About

Printing Inbox mail items problem

Author
27 May 2005 9:01 PM
kermit
I have a VB (6.0) application that uses the Outlook object to read the inbox
and automatically print selected e-mails.
The customer's machine is running Win2000 SP 4.  Outlook 2000 SP3.
One week it was working just fine.  Then IS put an Office 'update' on  the
machine.  (They cannot tell me specifically which one.)  Every since the same
code prints each selected e-mails 6 or 7 times.  I have had to shut off the
feature until resolved.
My development machine is running the same OS and outlook, as far as I can
tell the perteniant dll's are the same version.  However, only the customer's
machine is doing this.  Found nothing in the KB about this.  Since I cannot
seem to reproduce the error on a development machine it is a real problem. 
Any insight would be greatly appreciated.

VB 6.0
Reference to MS Outlook 9.0 Object Library  (  MSOUTL9.OLB   ver. 9.0.0.2702 )

Dim objOutlook as Outlook.NameSpace
Dim msg          as Outlook.MailItem
......
msg.print
......

Thank you for any help on this!

Author
31 May 2005 8:26 AM
Jan Hyde
kermit <ker***@discussions.microsoft.com>'s wild thoughts
were released on Fri, 27 May 2005 14:01:50 -0700 bearing the
following fruit:

Show quoteHide quote
>I have a VB (6.0) application that uses the Outlook object to read the inbox
>and automatically print selected e-mails.
>The customer's machine is running Win2000 SP 4.  Outlook 2000 SP3.
>One week it was working just fine.  Then IS put an Office 'update' on  the
>machine.  (They cannot tell me specifically which one.)  Every since the same
>code prints each selected e-mails 6 or 7 times.  I have had to shut off the
>feature until resolved.
>My development machine is running the same OS and outlook, as far as I can
>tell the perteniant dll's are the same version.  However, only the customer's
>machine is doing this.  Found nothing in the KB about this.  Since I cannot
>seem to reproduce the error on a development machine it is a real problem. 
>Any insight would be greatly appreciated.
>
>VB 6.0
>Reference to MS Outlook 9.0 Object Library  (  MSOUTL9.OLB   ver. 9.0.0.2702 )
>
>Dim objOutlook as Outlook.NameSpace
>Dim msg          as Outlook.MailItem
>.....
>msg.print
>.....
>
>Thank you for any help on this!

How are you getting a reference to the message?



Jan Hyde (VB MVP)

--
When some people go on a diet they have a gut reaction. (Mike Bull)

[Abolish the TV Licence - http://www.tvlicensing.biz/]