Information générale
Catégorie:
COM/DCOM et OLE Automation
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement