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

            rpt.Site = this.Site;
            return(rpt);
        }
Ejemplo n.º 2
0
        private void btnShowReport_Click(object sender, EventArgs e)
        {
            ShowLoading(true);
            frmShowReport frm = new frmShowReport();
            rptBOM        rep = new rptBOM();

            rep.SetDataSource(_dt);

            rep.SetParameterValue("Code", txtCode.Text);
            rep.SetParameterValue("SKU", txtSKU.Text);
            rep.SetParameterValue("IssuingDate", dtpIssueDate.Value.ToString());
            rep.SetParameterValue("IssuedBy", txtIssuedBy.Text);
            rep.SetParameterValue("MeterSpecifications", txtMeterSpecs.Text);
            rep.SetParameterValue("Revision", txtRevision.Text);

            frm.crystalReportViewer1.ReportSource = rep;
            frm.Show();
            ShowLoading(false);
        }