Beispiel #1
0
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            rptBarcode rpt = new rptBarcode();

            rpt.Site = this.Site;
            return(rpt);
        }
Beispiel #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;

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

            rptBarcode rpt = new rptBarcode();

            rpt.SetDataSource(ds);

            new frmReportViewer(rpt).Show();
        }
Beispiel #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;

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

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

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