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

            rpt.Site = this.Site;
            return(rpt);
        }
Exemplo n.º 2
0
        private void cmdPrint_Click(object sender, EventArgs e)
        {
            dsBarcode ds = new dsBarcode();

            for (int i = 0; i < Convert.ToInt32(txtCopies.Text); i++)
            {
                dsBarcode.dtBarcodeRow dr = ds.dtBarcode.NewdtBarcodeRow();
                MemoryStream           ms = new MemoryStream();
                imgBarcode.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
                dr.Barcode     = ms.ToArray();
                dr.DOB         = dteDOB.Text;
                dr.Name        = txtName.Text;
                dr.RegNo       = txtRegNo.Text;
                dr.BarcodeText = "*" + txtRegNo.Text + "*";

                ds.dtBarcode.Rows.Add(dr);
            }

            rptBarcode rpt = new rptBarcode();

            rpt.SetDataSource(ds);

            new frmReportViewer(rpt).Show();
        }
Exemplo n.º 3
0
        private void cmdPrint_Click(object sender, EventArgs e)
        {
            dsBarcode ds = new dsBarcode();
            
            for (int i = 0; i < Convert.ToInt32(txtCopies.Text); i++)
            {
                dsBarcode.dtBarcodeRow dr = ds.dtBarcode.NewdtBarcodeRow();
                MemoryStream ms = new MemoryStream();
                imgBarcode.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
                dr.Barcode = ms.ToArray();
                dr.DOB = dteDOB.Text;
                dr.Name = txtName.Text;
                dr.RegNo = txtRegNo.Text;
                dr.BarcodeText = "*" + txtRegNo.Text + "*";

                ds.dtBarcode.Rows.Add(dr);
            }

            rptBarcode rpt = new rptBarcode();
            rpt.SetDataSource(ds);

            new frmReportViewer(rpt).Show();
        }
Exemplo n.º 4
0
 public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport() {
     rptBarcode rpt = new rptBarcode();
     rpt.Site = this.Site;
     return rpt;
 }