public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() { reportService rpt = new reportService(); rpt.Site = this.Site; return(rpt); }
private void button1_Click(object sender, EventArgs e) { if (radioButton1.Checked) { reportService rptservice = new reportService(); rptservice.SetDatabaseLogon("system", "orcl"); rptservice.SetParameterValue("tgl_service", dateTimePicker1.Value); crystalReportViewer1.ReportSource = rptservice; } else if (radioButton2.Checked) { reportBarang rptbarang = new reportBarang(); rptbarang.SetDatabaseLogon("system", "orcl"); rptbarang.SetParameterValue("tanggalTransaksi", dateTimePicker1.Value); crystalReportViewer1.ReportSource = rptbarang; } }