# scantoprint **Repository Path**: phonography/scantoprint ## Basic Information - **Project Name**: scantoprint - **Description**: 使用python对扫码数据的字符处理,然后使用易标签软件自动打印预设标签 - **Primary Language**: Python - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: http://www.yi-label.com/ - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2024-05-22 - **Last Updated**: 2024-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 扫描自动打印 由于易标签软件的字符再处理功能不完善,所以使用python处理扫码数据然后再打印。 ### 该脚本实现了在本地扫码自动打印功能,并可对扫码数字再处理。 1. 创建标签模板scantoprint.yix 使用数据源scandata.csv 2. 根据易标签模板实际调用的csv文件名修改scandata.csv名和批处理文件名do_print.bat 3. 制作自动打印脚本do_print.bat设置ELabel安装目录和E-Label.exe bat 打印命令 4. def execute_and_print 字符处理,默认是分割为三个字符串 * scantoprint4.py 主程序,修改scandata.csv和do_print.bat两处文件名,修改扫码后的字符处理要求。 * scantoprint.yix 是易标签模板文件,可根据自己实际需求自行修改。使用易标签软件打印 * scandata.csv 是示例数据,主程序运行后会自动生成。 * do_print.bat 是自动打印的批处理,需指定易标签的程序目录和标签模板路径