protected void Page_Load(object sender, EventArgs e)
{
ReportDocument crystalReport = new ReportDocument();
crystalReport.Load(Server.MapPath("CrystalReport4.rpt"));
crystalReport.SetDatabaseLogon
("name"@passwd", @"databasename)
CrystalReportViewer1.ReportSource = crystalReport;