Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving an attachment file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00281087
Message ID:
00281403
Vues:
12
>I'm using CREATEOBJECT("MAPI.Session") to read and send mail through my application. When I need to save attachment files, on some PCs it works fine but on some other, the name is changed. I use the command line below.
>
>lFileName = oAttach.ITEM(j).NAME
>oAttach.ITEM(j).WriteToFile(THIS.SaveAsPath + lFileName + "")
>
>Does anybody have an idea why the name is changed on some computers. (We now use outlook98)
>
>Thanks.

Don't know for certain, but you could check:-

1. You could try checking the attachment type - the sender can either attach a file or paste it into the message - perhaps with an embedded object the name displayed on-screen is not the same as (possibly) a temporary name generated by Widndows;

2. Are the Windows versions different: there seem to be a number of subtle differences between Windows 95 and 95 rev b. at least;

3. What does the name get changed to? Does it get changed *after* it's saved and what does .NAME actually evaluate to just before you write it?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform