当前位置:网站首页>14x1.5cm vertical label is a little difficult, VFP calls bartender to print
14x1.5cm vertical label is a little difficult, VFP calls bartender to print
2022-06-30 05:20:00 【VFP of Garfield】
Test environment description :
WIDNOWS 10 64bit PRO( The lower version cannot be installed BarTender2022)
The printer Jiabo GP-1324D
VFP9 SP2 7423
This software is really good for labeling , It's good to start with .
Create a new by using the new document wizard 14cmx1.5cm Vertical label for
Select the corresponding label printer
Set related settings such as single column or multi column
Create a named data source
Binding named data sources
Select the text or label QR code , Right click -》 Select Properties
Select the data source tab , Click the gesture icon to select
Here is the change data source name wizard , You can select the corresponding data source in the list
Close... After setting
Operate according to the above figure , Assign all the text or two code of the required variables to the named data source .
Store the created tag in the location you need to call .
Then you can go through VFP The program prints the label , Here is the code :
&& TMP301 It's a temporary table
&& establish BarTender The object of
XX=CREATEOBJECT("BarTender.Application")
&& Open label , Returns the label object
PrintLab=XX.FORMATS.OPEN(MCPATH_FRM + 'MC43011.BTW',.T.,"")
&& Parameters 1: Named data source name ( Be sensitive to size ), Parameters 2: value 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)
&& Output to printer , Parameters 2:.F.= Do not display the window for selecting a printer . Don't make mistakes in the parameters passed, or the machine will crash
PrintLab.Printout(.T.,.F.)
Testing is completed , Perfect printing !!!
2022-06-24 SUN In Huaian, North Jiangsu
边栏推荐
- mmdet之Loss模块详解
- Unity obtains serial port data
- Unity animator does not clip animation to play animation in segments
- Records of some problems encountered during unity development (continuously updated)
- Detailed explanation of sorting sort method of JS array
- C # three ways to obtain web page content
- Unity Catmull ROM curve
- Another download address for typro
- 【LeetCode】Easy | 232. Using stack to realize queue (pure C manual tearing stack)
- 企事业单位源代码防泄露工作该如何进行
猜你喜欢
遥感图像/UDA:Curriculum-Style Local-to-Global Adaptation for Cross-Domain Remote Sensing Image Segmentat
中文版PyCharm改为英文版PyCharm
How does unity use mapbox to implement real maps in games?
3D rotation album
The minecraft server address cannot be refreshed.
东塔攻防世界—xss绕过安全狗
QT connecting external libraries
VFPBS上传EXCEL并保存MSSQL到数据库中
Super comprehensive summary | related improvement codes of orb-slam2 / orb-slam3!
Procedural animation -- inverse kinematics of tentacles
随机推荐
Database base (Study & review for self use)
Nestjs中控制器和路由的配置使用
Unity project hosting platform plasticscm (learn to use 2)
Force buckle 977 Square of ordered array
Virtual and pure virtual destructions
The fourth day of learning C language for Asian people
Leetcode 180 Consecutive numbers (2022.06.29)
Ripple effect of mouse click (unity & shader)
VFPBS在IIS下调用EXCEL遇到的Access is denied
Revit Secondary Development - - Project use Panel features not opened
Unity project hosting platform plasticscm (learn to use 1)
QT connecting external libraries
Log writing specification
Force buckle 209 Minimum length subarray
Postman 做测试的 6 个常见问题
Unity determines whether the UI is clicked
Unity gets the resolution of the game view
[typescript] experimentaldecorators of vscode stepping pit
【LeetCode】Easy | 232. Using stack to realize queue (pure C manual tearing stack)
网络变压器怎么判断好坏?网络滤波变压器坏了一般是什么症状?