public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { CrystalReport2 rpt = new CrystalReport2(); rpt.Site = this.Site; return(rpt); }
private void button1_Click(object sender, EventArgs e) { CrystalReport2 reporte = new CrystalReport2(); reporte.SetParameterValue("@fechaInicio", dateTimePicker1.Value.Date); reporte.SetParameterValue("@fechaFin", dateTimePicker2.Value.Date); crystalReportViewer1.ReportSource = reporte; //crystalReportViewer1.ReportSource = reporte; }