private void textEdit1_EditValueChanged(object sender, EventArgs e) { barCodeControl1.Parent = this; //barCodeControl1.AutoModule = true; barCodeControl1.Text = textEdit1.Text; Code128Generator symb = new Code128Generator(); barCodeControl1.Symbology = symb; symb.CharacterSet = Code128Charset.CharsetAuto; }
private void method_0() { Code128Generator generator = new Code128Generator(); this.detailBand_0 = new DetailBand(); this.xrbarCode_0 = new XRBarCode(); this.xrlabel_0 = new XRLabel(); this.bottomMarginBand_0 = new BottomMarginBand(); this.topMarginBand_0 = new TopMarginBand(); this.BeginInit(); this.detailBand_0.Controls.AddRange(new XRControl[] { this.xrlabel_0, this.xrbarCode_0 }); this.detailBand_0.Dpi = 254f; this.detailBand_0.Font = new Font("Times New Roman", 9f, FontStyle.Bold, GraphicsUnit.Point, 0); this.detailBand_0.Height = 0x8a; this.detailBand_0.MultiColumn.ColumnCount = 5; this.detailBand_0.MultiColumn.ColumnSpacing = 20f; this.detailBand_0.MultiColumn.ColumnWidth = 370f; this.detailBand_0.MultiColumn.Direction = ColumnDirection.AcrossThenDown; this.detailBand_0.MultiColumn.Mode = MultiColumnMode.UseColumnWidth; this.detailBand_0.Name = "Detail"; this.detailBand_0.Padding = new PaddingInfo(0, 0, 0, 0, 254f); this.detailBand_0.RepeatCountOnEmptyDataSource = 0x37; this.detailBand_0.StylePriority.UseBorderWidth = false; this.detailBand_0.StylePriority.UseFont = false; this.detailBand_0.TextAlignment = TextAlignment.TopLeft; this.xrbarCode_0.Alignment = TextAlignment.MiddleCenter; this.xrbarCode_0.AutoModule = true; this.xrbarCode_0.Dpi = 254f; this.xrbarCode_0.Font = new Font("Tahoma", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0); this.xrbarCode_0.Location = new Point(3, 0x18); this.xrbarCode_0.Module = 208f; this.xrbarCode_0.Name = "xrBarCode1"; this.xrbarCode_0.Padding = new PaddingInfo(5, 0, 0, 0, 254f); this.xrbarCode_0.Size = new Size(0x151, 0x56); this.xrbarCode_0.StylePriority.UseBorderColor = false; this.xrbarCode_0.StylePriority.UseFont = false; this.xrbarCode_0.StylePriority.UsePadding = false; this.xrbarCode_0.StylePriority.UseTextAlignment = false; this.xrbarCode_0.Symbology = generator; this.xrbarCode_0.Text = "000003"; this.xrbarCode_0.TextAlignment = TextAlignment.MiddleLeft; this.xrlabel_0.Dpi = 254f; this.xrlabel_0.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); this.xrlabel_0.Location = new Point(0x95, 0x47); this.xrlabel_0.Name = "Txt_Price"; this.xrlabel_0.Padding = new PaddingInfo(5, 5, 0, 0, 254f); this.xrlabel_0.Size = new Size(0xbc, 0x22); this.xrlabel_0.StylePriority.UseFont = false; this.xrlabel_0.StylePriority.UseTextAlignment = false; this.xrlabel_0.Text = "Txt_Price"; this.xrlabel_0.TextAlignment = TextAlignment.MiddleRight; this.xrlabel_0.WordWrap = false; this.bottomMarginBand_0.Dpi = 254f; this.bottomMarginBand_0.Height = 0x530; this.bottomMarginBand_0.Name = "BottomMargin"; this.topMarginBand_0.Dpi = 254f; this.topMarginBand_0.Height = 30; this.topMarginBand_0.Name = "TopMargin"; base.Bands.AddRange(new Band[] { this.detailBand_0, this.bottomMarginBand_0, this.topMarginBand_0 }); base.DataMember = "tblLabelPrn"; this.Dpi = 254f; base.GridSize = new Size(7, 7); base.Margins = new Margins(0x54, 0x4f, 30, 0x530); base.PageHeight = 0xb99; base.PageWidth = 0x835; base.PaperKind = PaperKind.A4; base.PaperName = "Tom109"; base.ReportUnit = ReportUnit.TenthsOfAMillimeter; base.SnapToGrid = false; base.Version = "9.1"; this.BeforePrint += new PrintEventHandler(this.Labels109_BeforePrint); this.EndInit(); }
private void method_0() { Code128Generator generator = new Code128Generator(); this.detailBand_0 = new DetailBand(); this.xrlabel_0 = new XRLabel(); this.xrbarCode_0 = new XRBarCode(); this.xrtable_0 = new XRTable(); this.xrtableRow_0 = new XRTableRow(); this.xrtableCell_0 = new XRTableCell(); this.xrtableRow_1 = new XRTableRow(); this.xrtableCell_1 = new XRTableCell(); this.bottomMarginBand_0 = new BottomMarginBand(); this.topMarginBand_0 = new TopMarginBand(); this.xrtable_0.BeginInit(); this.BeginInit(); this.detailBand_0.Controls.AddRange(new XRControl[] { this.xrlabel_0, this.xrbarCode_0, this.xrtable_0 }); this.detailBand_0.Dpi = 254f; this.detailBand_0.Height = 160; this.detailBand_0.MultiColumn.ColumnCount = 6; this.detailBand_0.MultiColumn.ColumnSpacing = 16f; this.detailBand_0.MultiColumn.ColumnWidth = 360f; this.detailBand_0.MultiColumn.Direction = ColumnDirection.AcrossThenDown; this.detailBand_0.MultiColumn.Mode = MultiColumnMode.UseColumnCount; this.detailBand_0.Name = "Detail"; this.detailBand_0.Padding = new PaddingInfo(0, 0, 0, 0, 254f); this.detailBand_0.RepeatCountOnEmptyDataSource = 90; this.detailBand_0.StylePriority.UseBorderWidth = false; this.detailBand_0.StylePriority.UseFont = false; this.detailBand_0.TextAlignment = TextAlignment.TopLeft; this.xrlabel_0.Dpi = 254f; this.xrlabel_0.Font = new Font("Times New Roman", 9f, FontStyle.Bold, GraphicsUnit.Point, 0); this.xrlabel_0.Location = new Point(2, 0); this.xrlabel_0.Name = "Lbl_Name"; this.xrlabel_0.Padding = new PaddingInfo(0, 0, 0, 0, 254f); this.xrlabel_0.Size = new Size(0x145, 0x1c); this.xrlabel_0.StylePriority.UseFont = false; this.xrlabel_0.StylePriority.UsePadding = false; this.xrlabel_0.StylePriority.UseTextAlignment = false; this.xrlabel_0.Text = "Bella"; this.xrlabel_0.TextAlignment = TextAlignment.MiddleCenter; this.xrbarCode_0.Alignment = TextAlignment.MiddleCenter; this.xrbarCode_0.AutoModule = true; this.xrbarCode_0.Dpi = 254f; this.xrbarCode_0.Font = new Font("Tahoma", 8.25f, FontStyle.Bold, GraphicsUnit.Point, 0); this.xrbarCode_0.Location = new Point(0x29, 0x21); this.xrbarCode_0.Module = 208f; this.xrbarCode_0.Name = "xrBarCode1"; this.xrbarCode_0.Padding = new PaddingInfo(0, 0, 0, 0, 254f); this.xrbarCode_0.Size = new Size(0xfd, 0x4f); this.xrbarCode_0.StylePriority.UseBorderColor = false; this.xrbarCode_0.StylePriority.UseFont = false; this.xrbarCode_0.StylePriority.UsePadding = false; this.xrbarCode_0.StylePriority.UseTextAlignment = false; this.xrbarCode_0.Symbology = generator; this.xrbarCode_0.Text = "000002"; this.xrbarCode_0.TextAlignment = TextAlignment.MiddleCenter; this.xrtable_0.Dpi = 254f; this.xrtable_0.Location = new Point(3, 0x66); this.xrtable_0.Name = "xrTable1"; this.xrtable_0.Rows.AddRange(new XRTableRow[] { this.xrtableRow_0, this.xrtableRow_1 }); this.xrtable_0.Size = new Size(0x144, 0x34); this.xrtableRow_0.Cells.AddRange(new XRTableCell[] { this.xrtableCell_0 }); this.xrtableRow_0.Dpi = 254f; this.xrtableRow_0.Name = "xrTableRow1"; this.xrtableRow_0.Weight = 1.0; this.xrtableCell_0.Dpi = 254f; this.xrtableCell_0.Font = new Font("Times New Roman", 8.25f, FontStyle.Regular, GraphicsUnit.Point, 0); this.xrtableCell_0.Name = "Txt_MercName"; this.xrtableCell_0.StylePriority.UseFont = false; this.xrtableCell_0.StylePriority.UseTextAlignment = false; this.xrtableCell_0.Text = "Txt_MercName"; this.xrtableCell_0.TextAlignment = TextAlignment.BottomCenter; this.xrtableCell_0.Weight = 1.8070866141732305; this.xrtableCell_0.WordWrap = false; this.xrtableRow_1.Cells.AddRange(new XRTableCell[] { this.xrtableCell_1 }); this.xrtableRow_1.Dpi = 254f; this.xrtableRow_1.Name = "xrTableRow2"; this.xrtableRow_1.Weight = 1.0; this.xrtableCell_1.Dpi = 254f; this.xrtableCell_1.Font = new Font("Tahoma", 6.75f, FontStyle.Bold, GraphicsUnit.Point, 0); this.xrtableCell_1.Name = "Txt_Price"; this.xrtableCell_1.Padding = new PaddingInfo(0, 7, 0, 0, 254f); this.xrtableCell_1.StylePriority.UseFont = false; this.xrtableCell_1.StylePriority.UsePadding = false; this.xrtableCell_1.StylePriority.UseTextAlignment = false; this.xrtableCell_1.Text = "Txt_Price"; this.xrtableCell_1.TextAlignment = TextAlignment.TopRight; this.xrtableCell_1.Weight = 1.8070866141732305; this.xrtableCell_1.WordWrap = false; this.bottomMarginBand_0.Dpi = 254f; this.bottomMarginBand_0.Height = 20; this.bottomMarginBand_0.Name = "BottomMargin"; this.topMarginBand_0.Dpi = 254f; this.topMarginBand_0.Height = 20; this.topMarginBand_0.Name = "TopMargin"; base.Bands.AddRange(new Band[] { this.detailBand_0, this.bottomMarginBand_0, this.topMarginBand_0 }); this.Dpi = 254f; base.GridSize = new Size(7, 7); base.Margins = new Margins(20, 20, 20, 20); base.Name = "KitLabelsA4"; base.PageHeight = 0xb99; base.PageWidth = 0x835; base.PaperKind = PaperKind.A4; base.PaperName = "TJ108"; base.ReportUnit = ReportUnit.TenthsOfAMillimeter; base.ShowPrintingWarnings = false; base.SnapToGrid = false; base.Version = "9.1"; this.BeforePrint += new PrintEventHandler(this.KitLabelsA4_BeforePrint); this.xrtable_0.EndInit(); this.EndInit(); }