Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Re: Email
Divers
Thread ID:
00229733
Message ID:
00229814
Vues:
23
Shuli,

The property you're looking for is "Attachments.add()". The code I use is
OleMessage.attachments.add(cFile,1)
where "OleMessage" is the outlook object, cFile is my file name including path. Somebody smarter will know what the final '1' does - I remember it was required, but I don't remember WHY.

Are you sending reports as ASCII files or as print-to-file which includes printer codes? The former gives a "DOSy" report with no formatting, and the latter means the file can only be printed on a matching printer. You might consider putting the data into an EXCEL file or a WORD document, also with OLE Automation. The person getting the file will then be able to look at it, change it or print it in any format.

HTH
Barbara


>I'm trying to send reports via email directly from within my application. What is the name of the Outlook property that needs to be assigned the name of the attached file? Is this the best way to email reports directly? Thanks, Shuli
Barbara Paltiel, Paltiel Inc.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform