Re: Size of Attachment before save



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
>>
.



Relevant Pages

  • Re: Installing todays Office 2000 security update (KB892842) with
    ... Went back to updates now it only states that the Outlook Collaboration Data ... Objects (CDO) Update: ... Now if we can figure out how to get CDO update to stick (when I install it, ... patch) then it can include it in the file re-build. ...
    (microsoft.public.officeupdate)
  • Re: Exchange/Outlook 2007 MAPI in WinXP
    ... It looks like CDO did the trick. ... Do you really need Outlook? ... But, as you said, the other (MAPI) package will not install if Outlook is ...
    (microsoft.public.win32.programmer.messaging)
  • Re: Size of Attachment before save
    ... saved before it can be casted to a CDO Message. ... Dim oAtt As MAPI.Attachment ... Michael Bauer - MVP Outlook ... >>> (everything is either installed or install at first use). ...
    (microsoft.public.outlook.program_vba)
  • Re: Outlook Security Guard Issue
    ... You can re-run the Outlook setup and select CDO. ... The server is a simple development server and does not have exchange ... Server/Admin or teh standalone MAPI download (it will redfuse to install ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: Could not load file or assembly Interop.MAPI
    ... CDO 1.21 is not a standalone install in Outlook 2003. ... Standalone version of MAPI includes CDO 1.21, but it will refuse to install ...
    (microsoft.public.outlook.program_vba)

Loading