Re: Outlook and e-mails

From: Ken Slovak - [MVP - Outlook] (kenslovak_at_mvps.org)
Date: 07/08/04


Date: Thu, 8 Jul 2004 08:46:09 -0400

See http://www.outlookcode.com/d/code/zaphtml.htm#cw for an example of some
code that handles emails as they come into an Inbox. That can be the basis
for your starting point. You can then use code in that event handler that
detaches the Word attachments and saves them to the file system, which is
the only way to work with Outlook attachments. From that point you would
open the saved attachments in Word and use Word methods to print them. See
http://www.slovaktech.com/code_samples.htm#StripAttachments for an example
of how to detach and save attachments. That sample does it for the currently
selected items, but can be modified to handle any particular email item.

-- 
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Miki Peric" <blah@ccc.com> wrote in message
news:u86zKmMZEHA.3128@TK2MSFTNGP09.phx.gbl...
>
>     I'd like to quickly develop small app that would print MS Word
documents
> received by e-mail. My fried is using Linux and asks me each day to print
> for him some MS Word files. He would send me Word document with specific
> words in the subject and when my Outlook "plug-in" recognize it - will
print
> it. Doesn anyone have some code samples? I'm beginner in Outlook
> programming. Is the best way to do this to use VBA or COM or what else do
> you suggest?
>
> Thanks in advance.
>
>


Relevant Pages

  • Re: Outlook 2003 is eating my attachments! HELP !
    ... the message origin of emails - the SPF Fail message at the top may have ... Milly Staples [MVP - Outlook] ... my ISP webmail displays the message and attachments correctly. ...
    (microsoft.public.office.misc)
  • Re: 132 attachment email messages and email itself vanish to destination
    ... Make sure to save as format "Outlook Express E-mail message", ... When emails arrive on PC, save the attachments, open them and drag the emails directly into Outlook Inbox. ...
    (microsoft.public.internet.outlookexpress.mac)
  • Re: Converting Entourage Emails
    ... > format so that I can import it into Outlook 2000? ... in Entourage - part of Microsoft Office Mac - on the Mac. ... The messages contain attachments, that's ... On windows, open the emails in Outlook Express, not Outlook. ...
    (microsoft.public.mac.office.entourage)
  • Re: Attachments
    ... I believe this has something to do with the way Outlook generates file names ... in the Outlook temp folder for attachments. ... > Drafts folder where I can review the emails before deciding if to send ...
    (microsoft.public.outlook.program_vba)
  • Re: Can you send a mail merge to a large group WITH an attachment?
    ... articles and once you've mastered plain mail merge - without attachments - ... "Directory Source.xls" as your data source. ... The result is a new Word document, which has a table with all of the ... "Directory.doc" (the one with the big table of emails and file paths) ...
    (microsoft.public.word.mailmerge.fields)