Outlook 2010 automatic printing of email attachments

Category: outlook for developers


Ma7tt on Mon, 22 Aug 2016 10:25:18

I'm hoping that someone can help. I receive a lot of emails at work and I've set up various rules to forward them automatically and save time. Unfortunately, my employer has changed our invoicing process. We previously received the new ones by post. Now we get them by email, it sounds quicker but its really not. I've set up an automatic rule to forward them to a specific folder, it has an option within rules/alerts to automatically print - this just prints the covering email, not the attachment. The emails I receive are a covering email (nothing I need) and an attachment. As well as still sending them to a different folder, is there a way to print the attachment and NOT the covering email? I receive hundreds a month and dont want to waste paper (and save time too). I know that you can set up scripts to do various things but its not something I understand. Our IT dept arent interested... Any help would be greatly appreciated! Thanks, Matt


Eugene Astafiev on Mon, 22 Aug 2016 12:43:41

Hello Matt,

You need to save the attached files on the disk to be able to print them. The Attachment class from the Outlook object model doesn't provide any property or method for that.

But you can use shell commands for that. For example, take a look at the following articles that provide sample code:

Macro to Print Outlook email attachments as they arrive

Print Attachments Automatically

Automated Attachment Printing Outlook 2010You can create a rule which can trigger a VBA macro where you can save attachments and use the shell command for printing.

Finally, you may find the Getting Started with VBA in Outlook 2010 article helpful.