開源免費標簽(條碼)打印軟件


****
* 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