設為首頁收藏本站

艾歐踢論壇

 找回密碼
 立即註冊

QQ登錄

只需一步,快速開始

搜索
熱搜: 活動 交友 discuz
查看: 939|回復: 0
打印 上一主題 下一主題

How to printing Barcode of Laser Printer

[複製鏈接]
跳轉到指定樓層
樓主
發表於 2016-6-10 10:39:29 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
You must embed the escape sequences with the 4GL statements.  Here's an exaple where I print the barcode for 5 data elements using an HPL laserjet printer.  THis is old code, so I don't remember the model number.

The point is you'll have to check your printer documentation:

CODE
  1. LET prt_cmd_str =
  2.     ASCII 27,"(0Y",               # Select barcode font
  3.     ASCII 27,"(s0p8.1h12v0s0b0T", # Pitch set.
  4.     ASCII 27, "&a9R",             # Line 9.2
  5.     ASCII 27,"&a6C",              # Column 6
  6.     "*",r_itmrcpt.receiptid CLIPPED,"*",
  7.     ASCII 27, "&a12R",            # Line 12.2
  8.     ASCII 27,"&a6C",              # Column 6
  9.     "*",r_itmrcpt.pallet CLIPPED,"*",
  10.     ASCII 27, "&a15R",            # Line 15.2
  11.     ASCII 27,"&a6C",              # Column 6
  12.     "*",r_itmrcpt.mm CLIPPED,"*",
  13.     ASCII 27, "&a18R",            # Line 18.2
  14.     ASCII 27,"&a6C",              # Column 6
  15.     "*",r_itmrcpt.item CLIPPED,"*",
  16.     ASCII 27, "&a21R",            # Line 21.2
  17.     ASCII 27,"&a6C",              # Column 6
  18.     "*",dispqty USING "&&&&&&","*",
  19.     ASCII 27,"(0U",               # Ascii
  20.     ASCII 27, "&a24R",            # Line 24
  21.     ASCII 27,"(s0p10h6v0s0b3T"

  22.   PRINT prt_cmd_str CLIPPED
複製代碼


http://www.iiug.org/software/index_I4GL.html
分享到:  QQ好友和群QQ好友和群 QQ空間QQ空間 騰訊微博騰訊微博 騰訊朋友騰訊朋友
收藏收藏 轉播轉播 分享分享 分享淘帖
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 立即註冊

本版積分規則

小黑屋|Archiver|手機版|艾歐踢創新工坊    

GMT+8, 2024-5-16 22:22 , Processed in 0.242485 second(s), 25 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回復 返回頂部 返回列表