PB列印斑馬條碼程式
uf_print13( string startcode, string stdtype, long copys ,string direct ) returns string
------------------------------------------------------
long job, i, counter,ll_state
string curr_code, static_part,ls_return
static_part = mid(startcode, 1, 7)
if direct = "N" then
counter = long(mid(startcode, 8, 8))
else
counter = long(mid(startcode, 8, 8)) + copys - 1
end if
job = printopen("barcode 02")
if job= -1 then
messagebox('提示','02分配列印作業失敗!!')
return ''
end if
ls_return=string(job)+':'
for i = 1 to copys
ll_state=printsend(job, "^XA", 10) //開始列印
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
curr_code = static_part + mid(string(100000000+counter), 2, 8)
ll_state=printsend(job, "^BY2,3.0,", 10) //條形碼的寬度
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^LH30,10", 10) //定義標籤起始位置
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=Printsend(job, "^FO20,15^XGXH,1,1^FS",10) // FO20,15表示座標,
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO20,40^BCN,70,N,N,N,N^FD"+curr_code+"^FS",10)//列印條形碼圖形
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO120,120^AD^FDNO:"+curr_code+"^FS",10)//列印條形碼字元
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=Printsend(job, "^FO20,165^XGXH,1,1^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO20,190^BCN,70,N,N,N,N^FD"+curr_code+"^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO120,270^AD^FDNO:"+curr_code+"^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=Printsend(job, "^FO20,325^XGXH,1,1^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO20,350^BCN,70,N,N,N,N^FD"+curr_code+"^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO120,430^AD^FDNO:"+curr_code+"^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=Printsend(job, "^FO20,475^XGXH,1,1^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO20,500^BCN,70,N,N,N,N^FD"+curr_code+"^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO120,580^AD^FDNO:"+curr_code+"^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
/*四聯*///2005-1028 2008-12-06 新格式列印
ll_state=Printsend(job, "^FO20,630^XGXH,1,1^FS",10) //140i3
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO20,655^BCN,70,N,N,N,N^FD"+curr_code+"^FS",10) //列印條形碼圖形
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO120,735^AD^FDNO:"+curr_code+"^FS",10) //列印條形碼字元
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=Printsend(job, "^FO18,740^XGhx,1,1^FS",10) //140i3
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=Printsend(job, "^FO20,765^XGrq,1,1^FS",10) //140i3
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
/*四聯*///2005-1028
/*
ll_state=Printsend(job, "^FO20,475^XGXH,1,1^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO20,500^BCN,70,N,N,N,N^FD"+curr_code+"^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
ll_state=printsend(job, "^FO120,580^AD^FDNO:"+curr_code+"^FS",10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
*/
ll_state=printsend(job, "^XZ", 10)
if i = 1 then ls_return=ls_return+string(ll_state)+'-'
if direct = "N" then
counter = counter + 1
else
counter = counter - 1
end if
next
printclose(job)
return ls_return
[@more@]
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/443058/viewspace-1042078/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- zebra(斑馬)PDA掃碼uniapp程式小demoAPP
- vxe-table 設定斑馬線條紋樣式
- 條碼編輯軟體如何批次列印倉庫庫位條碼
- 斑馬屬於誰?誰愛喝礦泉水?
- 運用li元素進行斑馬色顯示
- Flutter 實現“斑馬紋”背景(需要變換顏色)Flutter
- 年關需警惕!商業間諜木馬AZORult通過條碼列印軟體傳播竊密
- NetSuite實現pdf列印中的條形碼的功能UI
- 使用css3實現一個斑馬線的效果CSSS3
- 2015省賽----列印菱形(填程式碼)
- 3D列印結束時候,讓列印頭抬起的程式碼(cura的結束程式碼)3D
- 【ERROR】Oracle列印錯誤程式碼解釋ErrorOracle
- 條碼列印軟體中如何批次製作可變序列號
- vue實現帶logo的二維碼/商品條形碼/列印商品吊牌VueGo
- 【TcaplusDB知識庫】PB表 C++ 示例程式碼-更新資料C++
- 幾百萬條的報表咋列印?
- laravel自定義命令列印進度條Laravel命令列
- 【TcaplusDB知識庫】PB表 C++ 示例程式碼-讀取資料C++
- 【TcaplusDB知識庫】PB表C++示例程式碼-刪除資料C++
- Python之程式碼進度條Python
- 條碼列印軟體是否可以製作只能掃描一次的二維碼?
- 讀取檔案大小-列印進度條
- 《調教命令列06》條條大道通羅馬,羅馬羅馬你在哪(學習技巧)命令列
- 你好~ 我是小斑
- bat檔案進度條程式碼BAT
- CSS條紋背景程式碼例項CSS
- 總結常用的掛馬程式碼
- 匹配商品條形碼正規表示式程式碼
- apache直接列印php程式碼或直接下載問題ApachePHP
- PAT-B 1036 跟奧巴馬一起程式設計【列印圖案】程式設計
- 程式碼簡潔的十條建議
- 美化滾動條效果程式碼例項
- CSS3滾動條效果程式碼CSSS3
- CSS3進度條效果程式碼CSSS3
- Halcon斑點分析BlobAnalysis解析
- 程式碼背後的智慧:20條程式設計感悟程式設計
- 工作總結!日誌列印的11條建議
- 【Python使用】嘿馬頭條完整開發md筆記第2篇:資料庫,作用【附程式碼文件】Python筆記資料庫
- 斑馬技術邀您吃生鮮——以極速物流方案讓您領鮮一步