当前位置:网站首页>14x1.5cm竖向标签有点难,VFP调用BarTender来打印
14x1.5cm竖向标签有点难,VFP调用BarTender来打印
2022-06-30 05:10:00 【加菲猫的VFP】
测试环境说明:
WIDNOWS 10 64bit PRO(低版本无法安装BarTender2022)
打印机 佳博GP-1324D
VFP9 SP2 7423
这个软件用来打标签是真不错,很好上手。
通过新建文档向导来新建14cmx1.5cm的竖向标签

选择对应的标签打印机
设置单列还是多列等相关设置







创建具名数据源




绑定具名数据源
选中文本或是标签二维码,右击-》选择属性
选中数据源页签,点击手势图标进行选择
这里有更改数据源名称向导,可以在列表内选择对应的数据源
设置完成后关闭
按照如上图操作,把所有需要变量的文本或二码码全部指定具名数据源.
将制作好的标签存在自己需要调用的位置。
然后就可以透过VFP程式打印标签了,下面是代码:
&& TMP301是临时表
&& 创建BarTender的对象
XX=CREATEOBJECT("BarTender.Application")
&& 打开标签,返回标签对象
PrintLab=XX.FORMATS.OPEN(MCPATH_FRM + 'MC43011.BTW',.T.,"")
&& 参数1:具名数据源名称(注意区分大小),参数2:值PrintLab.SetNamedSubStringValue("fastnomsg",TMP301.FASTNOMSG)
PrintLab.SetNamedSubStringValue("partnomsg",TMP301.PARTNOMSG)
PrintLab.SetNamedSubStringValue("partspecmsg",TMP301.PARTSPECMSG)
PrintLab.SetNamedSubStringValue("partnamemsg",TMP301.PARTNAMEMSG)
PrintLab.SetNamedSubStringValue("qrcorerpt",TMP301.PARTNOMSG)
&& 输出到打印机,参数2:.F.=不显示选择打印机的窗口。传递的参数不要搞错不然会死机
PrintLab.Printout(.T.,.F.)
测试完成,打印完美!!!
2022-06-24 SUN 于苏北淮安
边栏推荐
- Unity Logitech steering wheel access
- Unity automatic pathfinding
- Pytorch的安装以及入门使用
- Basic operations of Oracle data
- Oracle-数据的基本操作
- Chapter 7 vertex processing and drawing commands of OpenGL super classic (7th Edition)
- Unity scroll view element drag and drop to automatically adsorb centering and card effect
- C # three ways to obtain web page content
- Chapter 8 primitive processing of OpenGL super classic (version 7)
- Some books you should not miss when you are new to the workplace
猜你喜欢

MinGW-w64下载文件失败the file has been downloaded incorrectly!

Unity ugui text value suspended enlarged display add text background

How does unity use mapbox to implement real maps in games?
![[note] usage model tree of the unity resource tree structure virtualizingtreeview](/img/3e/fe5610c797a14554ad735172c3ab54.jpg)
[note] usage model tree of the unity resource tree structure virtualizingtreeview

Intellj idea generates jar packages for projects containing external lib to other projects. The method refers to the jar package written by itself

力扣977. 有序数组的平方

Unity + hololens publishing settings
![[learning notes] AssetBundle, xlua, hot update (use steps)](/img/59/9d9f31cfe55a908f2f0705e95ecc05.jpg)
[learning notes] AssetBundle, xlua, hot update (use steps)

Unity + hololens common basic functions

Chinese pycharm changed to English pycharm
随机推荐
[note] usage model tree of the unity resource tree structure virtualizingtreeview
Ugui uses its own function to realize reverse mask
Unity call Exe program
Golan no tests were run: fmt Printf() < BUG>
redis集群概念
力扣59. 螺旋矩阵 II
Force buckle 209 Minimum length subarray
MinGW-w64下载文件失败the file has been downloaded incorrectly!
Unity packaging and publishing webgl error reason exception: failed building webgl player
Unity + hololens common basic functions
Network communication problem locating steps
Display steerable 3D model in front of unity UI
Chinese pycharm changed to English pycharm
产生 BUG 测试人员需要自己去分析原因吗?
Exploration of unity webgl
Generate a slice of mesh Foundation
Unrealeengine4 - about uobject's giant pit that is automatically GC garbage collected
Pycharm database tool
Unity- the camera follows the player
Unity animator does not clip animation to play animation in segments