public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrystalReportJ rpt = new CrystalReportJ(); rpt.Site = this.Site; return(rpt); }
protected void Page_Load(object sender, EventArgs e) { DataSet1TableAdapters.peséeTableAdapter b = new DataSet1TableAdapters.peséeTableAdapter(); DataSet1TableAdapters.PosteTableAdapter c = new DataSet1TableAdapters.PosteTableAdapter(); DataSet1 i = new DataSet1(); b.Fill(i.pesée); c.Fill(i.Poste); CrystalReportJ ab = new CrystalReportJ(); ab.SetDataSource(i); ab.SetParameterValue("a", Diagrame.a); ab.SetParameterValue("b", Diagrame.b); CrystalReportViewer1.ReportSource = ab; }