条形码控件里面有示例生成图片参照如下代码: 引用BarCode.dll usingCobainsoft.Windows.Forms; BarcodeControlbar=newBarcodeControl(); bar.BarcodeType=BarcodeType.EAN13; bar.Data="6901028133920"; bar.SaveImage(System.Drawing.Imaging.ImageFormat.Jpeg,2,100,true,false,null,Application.StartupPath+"\\bar.j