# starlabel **Repository Path**: ariki/starlabel ## Basic Information - **Project Name**: starlabel - **Description**: 条码、二维码、工业商业标签打印;支持模板定义,插件扩展;适用TSC系列打印机 - **Primary Language**: C# - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 8 - **Forks**: 1 - **Created**: 2019-08-29 - **Last Updated**: 2024-09-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # starlabel #### 介绍 按照模板定义,打印多种格式标签。适用TSC条码打印机 #### 使用说明 1. 将TSCLib.dll拷贝到bin目录 2. 使用样例 string template = "常规.tl"; List dataList = new List(); Hashtable ht = new Hashtable(); ht.Add("Code", "ABC-001"); ht.Add("Title", "测试StarLabel"); dataList.Add(ht); StarLabelPrint.printData(dataList, "printer name",template, PrintParam.DefaultPrintParam()); 3. 插件 string template = AppDomain.CurrentDomain.BaseDirectory + "templates\\插件.tl"; List dataList = new List(); Hashtable ht = new Hashtable(); ht.Add("Code", "ABC-001"); dataList.Add(ht); StarLabelPrint.RegisterItem("ReverseItem", "MyLabelPlugin.dll,MyLabelPlugin.ReverseItem"); StarLabelPrint.printData(dataList, "printer name", template, PrintParam.DefaultPrintParam());