Re: Size of Attachment before save
- From: Michael Bauer <mb@xxxxxxxx>
- Date: Sat, 3 Dec 2005 07:44:20 +0100
Am Fri, 2 Dec 2005 11:30:03 -0800 schrieb Kevin Kutzera:
It´s the Outlook installation, correct. For most people this can be found on
the Office CD.
First I´d look in the VBA project if CDO is installed already. Please open
the project and click Tools/References, search for "Microsoft CDO 1.21
Library". If there´s no such item then install it from your CD where it´s
called something like "Collaboration Data Objects".
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
> Michael,
> Thanks for the response. I've located the cdo.dll on my Exchange Server.
> It only contains a const CdoPR_ATTACH_SIZE set to some big number. I'm
> guessing I have the wrong library.
> I've search both the Office 2003 standard and Professional CD's. During
> maintenance install of both products there are no optional components
> (everything is either installed or install at first use). I can not find
> the correct library anywhere. I'd appreciate any further direction you
can
> provide.
> MSCN article 171440 dicusses finding CDO libraries. I does not indicate
> that the Office install will provide the CDO library, but the Outlook
install
> will. I'll keep looking.
> Thanks
> Kevin
>
> "Michael Bauer" wrote:
>
>> Am Tue, 29 Nov 2005 08:55:33 -0800 schrieb Kevin Kutzera:
>>
>> Kevin, you can use CDO (optional component from the Office CD) to read
the
>> CdoPR_ATTACH_SIZE field.
>>
>> Or simply use the Redemption (www.dimastr.com). Its Attachment object has
a
>> Size property.
>>
>> --
>> Viele Gruesse / Best regards
>> Michael Bauer - MVP Outlook
>>
>>
>>
>>> I've searched the Outlook object model for at least a day. I am trying
to
>>> write code that will test the size of a file attachment BEFORE the user
>> saves
>>> to the Exchange DB. I've found the BeforeAttachmentSave event, and the
>>> Attachment property of the MailItem. There's also the Size property of
>> the
>>> Mailitem. Unfortunately the attachment must be saved before the Size
>>> property reflects the total size of the Item (message & attachment.).
>> I've
>>> tried to use the FileSystem but the Attachment PathName property doesn't
>>> contain the path to the file (documented and tested).
>>>
>>> GOAL: The goal of this small program is to alert and stop a user in the
>>> attempt to attach a large file (> 100 mb for example) before they save
or
>>> send. I don't have the overhead in the Exchange DB to allow users to
try.
>> I
>>> have the usual policies set for Send and Receive, unfortunately this
>> doesn't
>>> stop the users from trying, which overloads the DB capacity.
>>>
>>> Any ideas on another approach would be appreciated.
>>> Kevin
>>
.
- Follow-Ups:
- Re: Size of Attachment before save
- From: Kevin Kutzera
- Re: Size of Attachment before save
- Prev by Date: Re: Copy sent emails to IMAP folder
- Next by Date: Re: Move sent emails
- Previous by thread: Out of Memory
- Next by thread: Re: Size of Attachment before save
- Index(es):
Relevant Pages
|
Loading