Hi Chandan,
for sending the report as email attachment, you have number of ways to do the same.
1. You can send the REPORT to a text file
myFile = "c:\myDir\myTxtFile.txt"
REPORT FORM myReport.... NOCONSOLE TO FILE (myFile) ASCII
Then attach the myTxtFile.txt as an attachment to email.
2. If the report is not a txt type file, you can automate PDF generation. PDF creation is quite easy with some freeware utilities available (even the installation is automatic and no PDF writer is required - you can check in universalThread.com). Then attach the PDF to your email where any one can view it easily using PDF viewer available almost with every one.
3. Still another way is to save the report as HTM file, gaining popularity these days and use the IE to view the report.
4. Yet another way is export the report to word doc type file. But I dont recommend this. This is more complicated that export to xls type which you are doing but relatively simpler.
I would go with 1 or 2 above while I still do 3 at tiomes.
If you want the user to modify the report.. Txt type is easier. If you want user to recompute etc. on the generated report, XLS type is better. If you simply want users to view as it would appear in a report.. PDF is the best.
____________________________________________
ramani - (Subramanian.G) 