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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void btnPrint_Click(object sender, EventArgs e)
        {
            if (cbInvoice.SelectedIndex < 0)
            {
                MessageBox.Show("Mohon pilih Invoice");
                return;
            }
            if (txtNomerContainer.Text.Length <= 0)
            {
                MessageBox.Show("Mohon isi nomer container");
                return;
            }
            String invoice = cbInvoice.Text.Substring(0, 16);

            MessageBox.Show(invoice);
            LaporanMuatan rep = new LaporanMuatan();

            rep.SetDatabaseLogon("export", "import", "orcl", "");
            rep.SetParameterValue("id_invoice", invoice);
            rep.SetParameterValue("no_container", txtNomerContainer.Text);
            crystalReportViewer.ReportSource = rep;
        }