private void barCodeGenerate()
        {
            BarCodeDataSet barcodeDetails = new BarCodeDataSet();
            BarCodeReport  Report         = new BarCodeReport();
            DataTable      dTable         = barcodeDetails.CompanyDetails;

            readCompanyDetails();
            DataRow dr = dTable.NewRow();

            dr["CompanyName"] = companyName;
            dTable.Rows.Add(dr);
            Report.Database.Tables["CompanyDetails"].SetDataSource((DataTable)dTable);
            DataTable datatable = barcodeDetails.BarCodeTable;

            storeLists();
            for (int i = 0; i < idList.Count; i++)
            {
                sqtyCount = sqtyList[i];
                for (int j = 0; j < sqtyCount; j++)
                {
                    DataRow drow   = datatable.NewRow();
                    int     id     = idList[i];
                    string  I_name = Convert.ToString(id);
                    drow["ItemId"]   = "*";
                    drow["ItemId"]  += I_name;
                    drow["ItemId"]  += "*";
                    drow["ItemName"] = nameList[i];
                    datatable.Rows.Add(drow);
                }
            }
            Report.Database.Tables["BarCodeTable"].SetDataSource((DataTable)datatable);
            barCodeHistoryViewer.ViewerCore.ReportSource = Report;
        }
        public virtual CrystalDecisions.CrystalReports.Engine.ReportDocument CreateReport()
        {
            BarCodeReport rpt = new BarCodeReport();

            rpt.Site = this.Site;
            return(rpt);
        }