Ejemplo n.º 1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            reportBarang rpt = new reportBarang();

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 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;
     }
 }