Attachment size

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a property that allows me to retrieve the size of an email
attachment through VBA?

Thanks - Steve Moore
 
Size Property


Returns a Long indicating the size (in bytes) of the Outlook item. Read-
only.

expression.Size

expression Required. An expression that returns one of the objects in
the Applies To list.
 
Thanks Dmitry
I thought I was going blind not being able to find it - perhaps a property
that needs to be exposed, it is a field on outlook views.

Any ideas on how I could retrieve attachment sizes without having to save to
file and read?

Steve Moore
 
Sorry, now I see that you want the size of the attachment, not the record.
Ignore previous post.
 
Dmitry
I did notice that Redemption has an attachment size property - will have a
look there
 
CDO 1.21 - Attachment.Fields(PR_ATTACH_SIZE)
Extended MAPI: read PR_ATTACH_SIZE from IAttach using HrGetOneProp or
IAttach::GetProps
Redemption - Attachment.Size or Attachment.Fields(PR_ATTACH_SIZE)

PR_ATTACH_SIZE = 0x0E200003

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Back
Top