开源免费标签(条码)打印软件


****
* KopSoft标签打印软件 http://wms.kopsoft.cn/print/
* 码云 https://gitee.com/william1984/KopSoftPrint
* GitHub https://github.com/1984william/KopSoftPrint
*
* KopSoft仓库管理系统 http://wms.kopsoft.cn/
* 码云 https://gitee.com/yulou/KopSoftWms
* GitHub https://github.com/lysilver/KopSoftWms
*
* KopSoft制造执行系统 http://mes.kopsoft.cn/
* 码云 https://gitee.com/yulou/KopSoftMES
* GitHub https://github.com/lysilver/KopSoftMES
*
* KopSoft电子看板 http://kanban.kopsoft.cn/
*
* KopSoft数据采集与监控
* 码云 https://gitee.com/william1984/KopSoftSCADA
* GitHub https://github.com/1984william/KopSoftSCADA
*
* KopSoft开源免费WMS/MES QQ群:421635
****

 

下载服务端 https://files.cnblogs.com/files/williamyoung/KopSoftPrint_V20190828.zip

 

条形码二维码标签打印软件

C#打印 1.建立PrintDocument对象 2.设置PrintPage打印事件 3.调用Print方法进行打印

BarcodeWriter用于生成图片格式的条码类,通过Write函数进行输出 BarcodeFormat枚举类型,条形码/二维码 QrCodeEncodingOptions二维码设置选项,继承于EncodingOptions,主要设置宽,高,编码方式等 MultiFormatWriter复合格式条码写码器,通过encode方法得到BitMatrix BitMatrix表示按位表示的二维矩阵数组,元素的值用true和false表示二进制中的1和0

支持文本、图片、条形码、二维码、直线等对象自由拖拽、删除,纸张尺寸边距设计等, 并可保存为XML模板,可直接打印到打印机,数据源支持XML、EXCEL、数据库等

##操作步骤

  • 1.纸张设置:选择纸张尺寸或自定义纸张尺寸
  • 2.条形码;二维码;图片;文本;直线;设置好属性后 插入到编辑界面
  • 3.各对象支持拖拽操作,按Delete可删除当前选中的对象
  • 4.编辑好准备打印的内容后到“打印”TAB页,“保存配置”会将当前内容保存为XML文件
  • 5.保存配置后可以“打印预览”,也可以直接“打印”
  • 6.“读取配置”用于直接读取之前设计好的模板打印样式,文件保存在程序根目录中,默认模板为KopSoft.KopSoftPrint.PrintConfig.xml

 

 

 

                    case "{ProductPrice}":
                        string ProductPrice = null;
                        ProductPrice = KopSoftPrint.ListSource?[KopSoftPrint.rowIndex].ProductPrice;
                        result = result.Replace("{ProductPrice}", ProductPrice);
                        break;

                    case "{ProductUnit}":
                        string ProductUnit = null;
                        ProductUnit = KopSoftPrint.ListSource?[KopSoftPrint.rowIndex].ProductUnit;
                        result = result.Replace("{ProductUnit}", ProductUnit);
                        break;

                    case "{ProductSize}":
                        string ProductSize = null;
                        ProductSize = KopSoftPrint.ListSource?[KopSoftPrint.rowIndex].ProductSize;
                        result = result.Replace("{ProductSize}", ProductSize);
                        break;

                    case "{ProductColor}":
                        string ProductColor = null;
                        ProductColor = KopSoftPrint.ListSource?[KopSoftPrint.rowIndex].ProductColor;
                        result = result.Replace("{ProductColor}", ProductColor);
                        break;

                    case "{ProductSupplier}":
                        string ProductSupplier = null;
                        ProductSupplier = KopSoftPrint.ListSource?[KopSoftPrint.rowIndex].ProductSupplier;
                        result = result.Replace("{ProductSupplier}", ProductSupplier);
                        break;

                    case "{ProductBatch}":
                        string ProductBatch = null;
                        ProductBatch = KopSoftPrint.ListSource?[KopSoftPrint.rowIndex].ProductBatch;
                        result = result.Replace("{ProductBatch}", ProductBatch);
                        break;

                    default: break;
                }
            }
            return result;

  

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM