条形码控件引用了AxInterop.BARCODELib.dl和lInterop.BARCODELib.dll问题 我有c#条形码的例子,但我看不懂它是怎么添加上去的,在工具箱里找不到该控件!我引用了,但COM组件添加不上 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 你上面的是已经转化成的托管dll,应该有个MSBCODE9.OCX组件,直接引用这个。 this.barcodeControl2 = new Cobainsoft.Windows.Forms.BarcodeControl(); // // barcodeControl2 // this.barcodeControl2.AddOnCaption = null; this.barcodeControl2.AddOnData = null; this.barcodeControl2.BackColor = System.Drawing.Color.White; this.barcodeControl2.CopyRight = ""; this.barcodeControl2.Data = "000000"; this.barcodeControl2.Font = new System.Drawing.Font("Arial", 9F); this.barcodeControl2.ForeColor = System.Drawing.Color.Black; this.barcodeControl2.HorizontalAlignment = Cobainsoft.Windows.Forms.BarcodeHorizontalAlignment.Center; this.barcodeControl2.InvalidDataAction = Cobainsoft.Windows.Forms.InvalidDataAction.DisplayInvalid; this.barcodeControl2.Location = new System.Drawing.Point(30, 35); this.barcodeControl2.LowerTopTextBy = 0F; this.barcodeControl2.Name = "barcodeControl2"; this.barcodeControl2.RaiseBottomTextBy = 0F; this.barcodeControl2.Size = new System.Drawing.Size(218, 69); this.barcodeControl2.TabIndex = 1; 建议你研究下BarTender这个条形码软件。有第三方开发库。很方便。几行代码就搞定打印了。有些第三方库的条形码打印出来扫描枪(精度低点的)根本扫描不出来。 https://www.cnblogs.com/polk6/p/5052786.html C# 自动更新程序 在线等!!问一个地址传值问题 急急急!如何知道用户点击过系统中的某个按钮? 查看内存条数 图像显示不出来 有关连接字串ConnectionString部署问题!请讲的详细些,谢谢 请教一些关于DataRead、DataAdapter、DataSet的问题 怎么阻止应用程序的多重启动? 如何对大于4096byte字符串写到ORACLE数据库中????急 deV的gridcontrol控件问题 如何更改我现有的代码,使其更具扩展性? c# 引用viso2010控件报错 “创建AxHost”失败
//
// barcodeControl2
//
this.barcodeControl2.AddOnCaption = null;
this.barcodeControl2.AddOnData = null;
this.barcodeControl2.BackColor = System.Drawing.Color.White;
this.barcodeControl2.CopyRight = "";
this.barcodeControl2.Data = "000000";
this.barcodeControl2.Font = new System.Drawing.Font("Arial", 9F);
this.barcodeControl2.ForeColor = System.Drawing.Color.Black;
this.barcodeControl2.HorizontalAlignment = Cobainsoft.Windows.Forms.BarcodeHorizontalAlignment.Center;
this.barcodeControl2.InvalidDataAction = Cobainsoft.Windows.Forms.InvalidDataAction.DisplayInvalid;
this.barcodeControl2.Location = new System.Drawing.Point(30, 35);
this.barcodeControl2.LowerTopTextBy = 0F;
this.barcodeControl2.Name = "barcodeControl2";
this.barcodeControl2.RaiseBottomTextBy = 0F;
this.barcodeControl2.Size = new System.Drawing.Size(218, 69);
this.barcodeControl2.TabIndex = 1;