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