コード例 #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            CRlaporan rpt = new CRlaporan();

            rpt.Site = this.Site;
            return(rpt);
        }
コード例 #2
0
        private void pbGrafik_Click(object sender, EventArgs e)
        {
            DateTime  tglAwal1 = dateTglAwal.Value;
            String    awal     = tglAwal1.ToString("dd/MM/yyyy");
            CRlaporan rpt      = new CRlaporan();

            rpt.SetDatabaseLogon("proyekbisnis1", "proyekbisnis1", "orcl", "");
            rpt.SetParameterValue(0, awal);
            Laporantable table = new Laporantable();

            table.crystalReportViewer1.ReportSource = rpt;
            table.ShowDialog();
        }