views:

114

answers:

2

my problem is that i have to mail crystal reports through outlook to different vendors. I've got the solution how to mail through outlook but the problem that i am facing now is that i have to attach the report and the report should be such that it shows details of a particular row from the database. i tried using .rpt file and attached it but since .rpt is a saved data the same data goes to all the vendors and not a different quotation.

+2  A: 

The "rpt" file itself is just the definition of the report. It doesn't contain data. You'll have to run the report and export it in some file format, e.g. as PDF. You could attach that PDF file to your email.

splattne
A: 

Like splattne said...You would use a report parameter for the vendor. Set the parameter value before calling ReportDocument.ExportToDisk().

dotjoe