public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { listecli rpt = new listecli(); rpt.Site = this.Site; return(rpt); }
private void Ilistecli_Load(object sender, EventArgs e) { listecli listecli1 = new listecli(); if (xregion != "") { listecli1.DataDefinition.FormulaFields["region"].Text = "'RĂ©gion : " + xregion + "'"; } if (xsecteur != "") { listecli1.DataDefinition.FormulaFields["secteur"].Text = "'Section : " + xsecteur + "'"; } if (xfamille != "") { listecli1.DataDefinition.FormulaFields["famille"].Text = "'Famille : " + xfamille + "'"; } listecli1.SetDataSource(ds); listecli1.Refresh(); crystalReportViewer1.ReportSource = listecli1; crystalReportViewer1.Refresh(); }