--------------------------------------------------------------------------------private CrystalReport2 report=new CrystalReport2();
report.SetDataSource(ds1);
CrystalReportViewer1.ReportSource =report;
-----------------------------------------------------------------
DiskFileDestinationOptions crDiskFileDestinationOptions =
crReportDocument.SetDatabaseLogon("sa","talisma","TALDEV342","PeterDB");
crReportDocument.Load(@"C:\Inetpub\wwwroot\WeeklyReport\CrystalReport2.rpt");
CrystalReportViewer1.ReportSource = crReportDocument;
Fname =@"c:\try.pdf";
crDiskFileDestinationOptions.DiskFileName = Fname;
crExportOptions = crReportDocument.ExportOptions;
crExportOptions.DestinationOptions = crDiskFileDestinationOptions;
crExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
crExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
crReportDocument.Export();
Response.ClearContent();
Response.ClearHeaders();
Response.ContentType = "application/pdf";
Response.WriteFile(Fname);
Response.Flush();
Response.Close();
System.IO.File.Delete(Fname); These are the codes:regardsRajkumar Peter