示例#1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            reportService rpt = new reportService();

            rpt.Site = this.Site;
            return(rpt);
        }
示例#2
0
 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;
     }
 }