Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Nigel Coates MAPI Class or Outlook class which should I
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00503064
Message ID:
00503408
Vues:
24
This message has been marked as a message which has helped to the initial question of the thread.
Colin,

You can copy the files to another location or extract them by using the GetAttachmentFile() to tell whatever operation where the file is. While the mail item is open, the attachment files exist. Once you close the mail item, the attachment files will be deleted by the client.

Example: if an attachment file is DBF format you can append from &GetAttachmentFile(1) - I've even imported from excel format attachment files.

>Mark
>
>I am trying to build a similar app to you. My problem is that MapiMail tells me what the attachment files are by name but doesnt allow me to extract them and copy them to another location. Maybe I am missing somthing.
>
>This is the tail end of the code I am using.
>
>oObj=CreateObject("cusmapi")
>oObj.ReadMail(lcusername,lcpassword,lcunread,lcsender,lcsubject,lcstart,lcend,lcfetch)
>for x=1 to ff
>fred(x)=oObj.GetAttachmentFile(x)
>next
>
>array fred thus has the names of the attachments but not how to extract them.
>Any bright ideas?
>
>Colin Northway
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform