public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { cr2 rpt = new cr2(); rpt.Site = this.Site; return(rpt); }
private void button1_Click(object sender, EventArgs e) { cr2 Reporte = new cr2(); ds2 dss = new ds2(); ListadoComprasTableAdapter2 adaptador2 = new ListadoComprasTableAdapter2(); adaptador2.Fill(dss.Listado_Compras, 1); Reporte.SetDataSource(dss); this.crystalReportViewer1.ReportSource = Reporte; }