public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { bombas rpt = new bombas(); rpt.Site = this.Site; return(rpt); }
private void Reporte3_Load(object sender, EventArgs e) { //bombas reporte = new bombas(); //reporte.SetParameterValue("@nombre","Uno Kuwait"); //reporte.SetParameterValue("@codigo",1); //reporte.SetParameterValue("@tipo","Super"); //reporte.SetParameterValue("@estado","F"); //reporte.SetParameterValue("@litros","15.83 litros"); //reporte.SetParameterValue("@total",400); //crystalReportViewer1.ReportSource = reporte; bombas rep = new bombas(); DataSet rp = new DataSet(); rep.SetDataSource(rp); crystalReportViewer1.ReportSource = rep; }