Crystal Reports - login ayarları

 

            CrystalReport2 cr1 = new CrystalReport2();
            cr1.Load("CrystalReport2.rpt");
            cr1.SetDatabaseLogon("sa", "22");
            CrystalReportViewer1.ReportSource = cr1;
            CrystalReportViewer1.DataBind();
            CrystalReportViewer1.Visible = true;