Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving outlook text files
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01546194
Message ID:
01546257
Vues:
62
>How can I save outlook messages as text files

You could try this:
o = createobject("outlook.application")
For i = 1 To o.activeexplorer.currentfolder.Items.Count
        try
             o.activeexplorer.currentfolder.Items(i).saveas("Filename" + str(i) + ".txt")
        catch 
        end try       
    Next i
End Sub
Have not tried the exact code in vfp, but it's translated from outlook vba that does work. I'm assuming the saveas method works as tamar indicated.

I'm assuming you wish to save all the emails in the current outlook folder as text in the folder on your disk. You could always handle where it's saved in the filename.

Hope this helps.

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform