回复 1楼kitara的帖子
请使用以下代码添加:
- private void addBarCodeToolStripMenuItem_Click(object sender, EventArgs e)
- {
- this.textControl1.HeadersAndFooters.Add(TXTextControl.HeaderFooterType.FirstPageHeader);
- TXTextControl.HeaderFooter header = this.textControl1.HeadersAndFooters.GetItem(TXTextControl.HeaderFooterType.FirstPageHeader);
- header.Activate();
- TXTextControl.Barcode.TXBarcodeControl txBarControl = new TXTextControl.Barcode.TXBarcodeControl();
- TXTextControl.DataVisualization.BarcodeFrame bc = new TXTextControl.DataVisualization.BarcodeFrame(txBarControl);
- this.textControl1.Barcodes.Add(bc, this.textControl1.InputPosition.TextPosition);
- }
复制代码 |