Reduce the size of picture attachments: programmatically

Status
Not open for further replies.

oliv-

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi,
Is there another way of using a model (.oft) to
check programmatically "Resize large images when I send this message" when have Image Attachments with an Email ?
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
I'm not sure what you're asking for. In the ItemSend event you can loop through the Attachments collection of the item and check each attachment's Size property. If you want to check only certain types of attachments, then look for the item's file extension in the FileName property.
 

oliv-

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Thank you for your response. see there for manual procedure.
Ok for cheking each attachment but how to know picture resolution and resize it ?
 

Michael Bauer

Senior Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Probably you can read the resolution from the file description. See if you can find something in the Win32 API. For the other issue I'd try it with Google, for instance: "vba resize image"
 
Status
Not open for further replies.
Top