Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Open Attachments in Outlook Automation
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01452944
Message ID:
01452963
Vues:
59
Thre's a typo in your code. It should be
loAttachment.SaveAsFile("C:\Downloads\"+loAttachment.FileName)
>So far so good. The code at bottom scans for new unread emails and captures and displays the email in text format.
>Last phase not working.
>
>FOR EACH loAttachment IN loMess.Attachments
>   IF loAttachment.Type = 1
>   loAttachment.SaveAsFile("C;\Downloads\"+loAttachment.FileName)
>   ENDIF
>ENDFOR
>
>extract from: http://www.aksel.com/whitepapers/OutlookAutomation.htm
>
>I need to open and store attachments that come with the email in a folder called downloads. I have tried various placements of the code above without success - should it work? - if so, how would I integrate it with code below to collect the attachement my downloads directory.
>
>(i had added these lines to the code below and it now runs without error but also without effect. But it's guesswork on my part
>local loAttachment as object && at this locale (1)
>loattachment = lonamespace.getattachment(olfolderinbox) &&(2)
>
>many thanks
>k
>
<snip>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform