TSCLIB.DLL 函式庫使用說明 請於使用 TSCLIB.DLL 前, 安裝條碼印表機驅動程式 1. openport(a) 說明 : 指定電腦端的輸出埠 參數 : a: 字串型別 (1) 單機列印時, 請指定印表機驅動程式名稱 例如 : TSC CLEVER TTP-243 (2) 若連接印表

Similar documents
Instructions for WP8 TSC Bluetooth/Ethernet library functions 1. openport() Bluetooth openport(a) 說明 : 指定電腦端的輸出埠參數 : a: 字串型別直接指定 Bluetooth MacAdress,

Microsoft Word - DLL_V2.xx functions Chinese.doc

Android TSC Bluetooth/Ethernet 函式庫使用說明 1. openport(a) Bluetooth openport(a) 說明 : 指定電腦端的輸出埠參數 : a: 字串型別直接指定 Bluetooth MacAdress, 如 00:19:0E:A0:04:E1 Et

Android TSC Bluetooth/Ethernet 函式庫使用說明 1. openport(a) Bluetooth openport(a) 說明 : 指定藍芽的 MAC 碼參數 : a: 字串型別直接指定 Bluetooth MacAdress, 如 00:19:0E:A0:04:E1

嘉義市政府暨附(所)屬機關電話禮貌測試實施要點

LF 打印并走一行

<4D F736F F D20D6D0CEC4B7A88C57B454CABF8C57CEBBD593CEC4D28EB9A0>

The golden pins of the PCI card can be oxidized after months or years

第一章

Microsoft Word - 小心翼翼的二十一點N.doc

DeskJet F2180 DeskJet F4185 Deskjet F4280 DeskJet D2460 OK N/A N/A DeskJet 1660 OK ( 無提供 Win 2000 驅動 ) N/A N/A PSC 1315 Photosmart 2575 Photosmart C13

Microsoft Word - 永康市衛生所--黃琬珺.doc

投影片 1

说明

西班牙语专业本科培养方案

Microsoft Word - 《师范教育信息参考》 2011年第2期

untitled

「全國紡織技術論文競賽」投稿須知

第1章 簡介

VB控件教程大全

PT-18R PT-18R () PT-18R (CCC)


bingdian001.com

投影片 1

Epson

LQ-2090CII/LQ-2090CIIN

Microsoft Word - 三峽鎮衛生所_3_-張家宸.李永繁.doc

Microsoft Word - 武漢大學交流營心得_黃莉云_.doc

chi tu

ActiveX Control

游戏厅捕鱼技巧_天天酷跑游戏技巧 2048游戏技巧,游戏厅打鱼技巧_

<36322D5A CFB5C1D0D2C6B6AFB4F2D3A1BBFA2DB2FAC6B7B9E6B8F1B1EDA3A8C8FDD5DBD2B3A3A E30352E E706466>

概述

TTP-245 Plus / TTP-343 Plus TTP-247 / TTP-345 熱 感 式 / 熱 轉 式 條 碼 印 表 機 使 用 手 冊

jsj0.nps

1 a b d 2 a b c


报 告 简 要 丽 江 古 城 位 于 云 南 省 西 北 部, 始 建 于 宋 末 元 初 古 城 西 北 方 30 公 里 处 是 海 拔 5596 米 的 玉 龙 雪 山 及 第 四 世 冰 川 遗 迹 丽 江 古 城 在 南 宋 时 期 就 初 具 规 模, 已 有 八 九 百 年 的 历

有 不 良 企 图 时, 就 要 立 即 躲 开 他 当 你 实 在 难 以 分 辨 对 方 是 真 心 实 意 还 是 虚 情 假 意 时, 可 向 父 母 老 师 或 周 围 较 成 熟 和 亲 近 的 朋 友 请 教, 请 他 们 帮 你 分 析 情 况, 做 出 判 断 此 时, 拒 绝 帮

《垓下歌》 項羽

內 容 及 試 題 範 例 術 科 評 量 規 範 評 分 標 準 一 (, 工 具 與 材 料 由 本 校 提 供, 考 生 無 須 自 備 ) ( 一 ) 基 本 焊 接 工 具 操 作 及 辨 識 基 本 手 工 具 設 備 ( 二 ) 測 驗 時 間 50 分 鐘 ( 三 ) 工 具 與 材

2.??,,,,, ;,,,,,,,, 3.?,,?,?,

宜蘭縣風景區管理所五峰旗風景特定風景區開放行動咖啡車作業投標須知

第 二 十 七 章 一 夜 苦 熬 第 二 十 八 章 租 房 同 居 第 二 十 九 章 二 人 世 界 第 三 十 章 取 消 面 试 第 三 十 一 章 中 暑 卧 床 第 三 十 二 章 找 到 工 作 第

美 国 研 究

玻璃幕墙工程质量检验标准 JGJ/T

2

交 通 部 公 路 總 局 新 竹 區 監 理 所 104 年 第 2 次 契 約 服 務 員 甄 試 試 場 序 號 試 場 序 號 姓 名 A01 A02 A03 A04 A05 A06 A07 A08 A09 A10 A11 A12 A13 A14 A15 A16 張 齡 文 王 美 蕙 吳

玻璃幕墙工程质量检验标准 JGJ/T


重 庆 师 范 大 学 简 介 重 庆 师 范 大 学 创 办 于 1954 年, 是 首 批 学 士 授 权 单 位, 第 三 批 硕 士 学 位 授 权 单 位 2008 年 被 批 准 为 重 庆 市 中 期 立 项 建 设 的 博 士 单 位 经 过 60 年 的 建 设 和 发 展, 学

目 錄 所 有 權 聲 明... 4 文 件 慣 例... 6 EZ320 的 簡 介... 7 印 表 機 拆 裝 和 檢 查... 7 報 告 損 害... 7 準 備 列 印 電 池...10 安 裝 和 移 除 電 池...10 EZ320 單 埠 充 電 器 充 電

VB程序设计教程

第 一 节 认 识 自 我 的 意 义 一 个 人 只 有 认 识 自 我, 才 能 够 正 确 地 认 识 到 自 己 的 优 劣 势, 找 出 自 己 的 职 业 亮 点, 为 自 己 的 顺 利 求 职 推 波 助 澜 ; 一 个 人 只 有 认 识 自 我, 才 能 在 求 职 中 保 持

目 录 一 相 关 政 策... 1 河 南 财 经 政 法 大 学 实 验 室 建 设 与 管 理 办 法... 1 河 南 财 经 政 法 大 学 实 验 教 学 管 理 规 定... 4 河 南 财 经 政 法 大 学 政 府 采 购 管 理 办 法... 9 二 规 章 制 度... 15

1 Framework.NET Framework Microsoft Windows.NET Framework.NET Framework NOTE.NET NET Framework.NET Framework 2.0 ( 3 ).NET Framework 2.0.NET F

广西民族学院(下)

Microsoft Word 中的文档

KL-G2TC

Outline USB Application Requirements Variable Definition Communications Code for VB Code for Keil C Practice

840 提示 Excel - Excel -- Excel (=) Excel ch0.xlsx H5 =D5+E5+F5+G5 (=) = - Excel 00

<4D F736F F D DA5BFA6A1C476C1C92DBEC7ACECB8D5A8F728B57BB35D292E646F63>

1

本 课 程 作 为 非 计 算 机 专 业 本 科 通 识 课 程, 是 一 门 理 论 和 实 践 紧 密 结 合 的 实 用 课 程, 内 容 包 括 计 算 机 基 础 部 分 和 程 序 设 计 部 分 计 算 机 基 础 部 分 涵 盖 计 算 机 软 硬 件 组 成 数 制 表 示 操

Microsoft Word - 13院21号.doc

Visual Basic D 3D

No Title

EZ-2000 安裝操作手冊(繁)

QR Code 技術之探討

序号

万维全自动网络考试平台

( 二 ) 拓 展 岗 位 ( 群 ) 1. 餐 厅 服 务 岗 位 群 在 大 中 型 餐 饮 企 业 星 级 饭 店 主 要 从 事 餐 饮 服 务 的 有 关 工 作, 如 服 务 员 点 菜 师 茶 艺 师 咖 啡 师 调 酒 师 等 2. 食 品 加 工 岗 位 群 主 要 从 事 餐 饮

ebook129-11

CC213

Microsoft PowerPoint - VB5

輕鬆學 Dreamweaver CS5 網頁設計..\Example\Ch0\ \.html..\example\ch0\ \mouse.txt..\example\ch0\ \ _Ok.html 學習重點 JavaScript 複製程式碼 mouse.txt Ctrl+C Ctrl+C 0-4

國立暨南國際大學圖書館

TPM BIOS Infineon TPM Smart TPM Infineon TPM Smart TPM TPM Smart TPM TPM Advanced Mode...8

<4D F736F F D20BBFAB6AFB3B5B3CBD4B1D3C3B0B2C8ABB4F8A1A2D4BCCAF8CFB5CDB3A1A2B6F9CDAFD4BCCAF8CFB5CDB3BACD49534F B6F9CDAFD4BCCAF8CFB5CDB32DB1A8C5FAB8E52E646F63>

<4D F736F F D B0D3B77EC3FEA7DEC3C0C476C1C9A5BFA6A1B8D5C3442DB57BA6A1B35DAD702DBEC7ACEC2E646F6378>

ThreeDtunnel.doc

EZ TAG windows 2

FA-3000_Ver1.00

Sophos Central 快速安裝手冊

重 庆 师 范 大 学 简 介 重 庆 师 范 大 学 创 办 于 1954 年, 是 首 批 学 士 授 权 单 位, 第 三 批 硕 士 学 位 授 权 单 位 2008 年 被 批 准 为 重 庆 市 中 期 立 项 建 设 的 博 士 单 位 经 过 近 60 年 的 建 设 和 发 展,


電腦設備LP _第九組記憶體規範書

Transcription:

TSCLIB.DLL 函式庫使用說明 請於使用 TSCLIB.DLL 前, 安裝條碼印表機驅動程式 1. openport(a) 說明 : 指定電腦端的輸出埠 a: 字串型別 (1) 單機列印時, 請指定印表機驅動程式名稱 例如 : TSC CLEVER TTP-243 (2) 若連接印表機伺服器, 請指定伺服器路徑及共用印表機名稱 例如 : \\SERVER\TTP243 (3) 直接指定平行傳輸介面, 請指定輸出埠名稱為 LPT1 到 LPT4 (4) 直接指定 USB 傳輸介面, 請指定輸出埠名稱為 USB 2. closeport() 說明 : 關閉指定的電腦端輸出埠 無 3. setup(a,b,c,d,e,f,g) 說明 : 設定標籤的寬度 高度 列印速度 列印濃度 感應器類別 gap/black mark 垂直間距 gap/black mark 偏移距離 ) a: 字串型別, 設定標籤寬度, 單位 mm b: 字串型別, 設定標籤高度, 單位 mm c: 字串型別, 設定列印速度,( 列印速度隨機型不同而有不同的選項 ) 1.0: 每秒 1.0 吋列印速度 1.5: 每秒 1.5 吋列印速度 2.0: 每秒 2.0 吋列印速度 3.0: 每秒 3.0 吋列印速度 4.0: 每秒 4.0 吋列印速度 6.0: 每秒 6.0 吋列印速度 8.0: 每秒 8.0 吋列印速度 10.0: 每秒 10.0 吋列印速度 d: 字串型別, 設定列印濃度, 0~15, 數字愈大列印結果愈黑 e: 字串型別, 設定使用感應器類別

0 表示使用垂直間距感測器 (gap sensor) 1 表示使用黑標感測器 (black mark sensor) f: 字串型別, 設定 gap/black mark 垂直間距高度, 單位 : mm g: 字串型別, 設定 gap/black mark 偏移距離, 單位 : mm, 此參數若使用一般標籤時均設為 0 4. clearbuffer() 說明 : 清除 無 5. barcode(a,b,c,d,e,f,g,h,i) 說明 : 使用條碼機內建條碼列印 a: 字串型別, 條碼 X 方向起始點, 以點 (point) 表示 (200 DPI,1 點 =1/8 mm, 300 DPI,1 點 =1/12 mm) b: 字串型別, 條碼 Y 方向起始點, 以點 (point) 表示 (200 DPI,1 點 =1/8 mm, 300 DPI,1 點 =1/12 mm) c: 字串型別, 128 Code 128, switching code subset A, B, C 128M EAN128 automatically Code 128, switching code subset A, B, C manually. Code 128, switching code subset A, B, C automatically 25 Interleaved 2 of 5 25C 39 Code 39 39C 93 Code 93 EAN13 EAN 13 EAN13+2 EAN13+5 EAN8 EAN 8 EAN8+2 EAN8+5 CODA POST Interleaved 2 of 5 with check digits Code 39 with check digits EAN 13 with 2 digits add-on EAN 13 with 5 digits add-on EAN 8 with 2 digits add-on EAN 8 with 5 digits add-on Codabar Postnet

UPCA UPC-A UPCA+2 UPC-A with 2 digits add-on UPCA+5 UPC-A with 5 digits add-on UPCE UPC-E UPCE+2 UPC-E with 2 digits add-on UPCE+5 UPC-E with 5 digits add-on d: 字串型別, 設定條碼高度, 高度以點來表示 e: 字串型別, 設定是否列印條碼碼文 0: 不列印碼文 1: 列印碼文 f: 字串型別, 設定條碼旋轉角度 0: 旋轉 0 度 90: 旋轉 90 度 180: 旋轉 180 度 270: 旋轉 270 度 g: 字串型別, 設定條碼窄 bar 比例因子, 請參考 TSPL 使用手冊 h: 字串型別, 設定條碼寬 bar 比例因子, 請參考 TSPL 使用手冊 I: 字串型別, 條碼內容 6. printerfont(a,b,c,d,e,f,g) 說明 : 使用條碼機內建文字列印 a: 字串型別, 文字 X 方向起始點, 以點 (point) 表示 (200 DPI,1 點 =1/8 mm, 300 DPI,1 點 =1/12 mm) b: 字串型別, 文字 Y 方向起始點, 以點 (point) 表示 (200 DPI,1 點 =1/8 mm, 300 DPI,1 點 =1/12 mm) c: 字串型別, 內建字型名稱, 共 12 種 1: 8*/12 dots 2: 12*20 dots 3: 16*24 dots 4: 24*32 dots 5: 32*48 dots TST24.BF2: 繁體中文 24*24 TST16.BF2: 繁體中文 16*16 TTT24.BF2: 繁體中文 24*24 ( 電信碼 ) TSS24.BF2: 簡體中文 24*24 TSS16.BF2: 簡體中文 16*16

K: 韓文 24*24 L: 韓文 16*16 d: 字串型別, 設定文字旋轉角度 0: 旋轉 0 度 90: 旋轉 90 度 180: 旋轉 180 度 270: 旋轉 270 度 e: 字串型別, 設定文字 X 方向放大倍率,1~8 f: 字串型別, 設定文字 X 方向放大倍率,1~8 g: 字串型別, 列印文字內容 7. sendcommand(command) 說明 : 送內建指令到條碼印表機 詳細指令請參考 TSPL 8. printlabel(a,b) 說明 : 列印標籤內容 a: 字串型別, 設定列印標籤式數 (set) b: 字串型別, 設定列印標籤份數 (copy) 9. downloadpcx(a,b) 說明 : 下載單色 PCX 格式圖檔至印表機 a: 字串型別, 檔案名 ( 可包含路徑 ) b: 字串型別, 下載至印表機記憶體內之檔名 ( 請使用大寫檔名 ) 10. formfeed() 說明 : 跳頁, 該函式需在 setup 後使用 無 11. nobackfeed() 說明 : 設定紙張不回吐 無 12. windowsfont(a,b,c,d,e,f,g,h) 說明 : 使用 Windows TTF 字型列印文字

a: 整數型別, 文字 X 方向起始點, 以點 (point) 表示 b: 整數型別, 文字 Y 方向起始點, 以點 (point) 表示 c: 整數型別, 字體高度, 以點 (point) 表示 d: 整數型別, 旋轉角度, 逆時鐘方向旋轉 0 -> 0 degree 90-> 90 degree 180-> 180 degree 270-> 270 degree e: 整數型別, 字體外形 0-> 標準 (Normal) 1-> 斜體 (Italic) 2-> 粗體 (Bold) 3-> 粗斜體 (Bold and Italic) f: 整數型別, 底線 0-> 無底線 1-> 加底線 g: 字串型別, 字體名稱 如 : Arial, Times new Roman, 細名體, 標楷體 h: 字串型別, 列印文字內容 13. about() 說明 : 顯示 DLL 版本號碼 無

Visual Basic 5.0, 6.0 for Win95, 98 範例 Private Declare Sub openport Lib "c:\windows\system\tsclib.dll" ( ByVal PrinterName As String) Private Declare Sub closeport Lib "c:\windows\system\tsclib.dll" () Private Declare Sub sendcommand Lib "c:\windows\system\tsclib.dll" ( _ ByVal command As String) Private Declare Sub setup Lib "c:\windows\system\tsclib.dll" ( _ ByVal LabelWidth As String, _ ByVal LabelHeight As String, _ ByVal Speed As String, _ ByVal Density As String, _ ByVal Sensor As String, _ ByVal Vertical As String, _ ByVal Offset As String) Private Declare Sub downloadpcx Lib "c:\windows\system\tsclib.dll" ( _ ByVal Filename As String, _ ByVal ImageName As String) Private Declare Sub barcode Lib "c:\windows\system\tsclib.dll" ( _ ByVal X As String, _ ByVal Y As String, _ ByVal CodeType As String, _ ByVal Height As String, _ ByVal Readable As String, _ ByVal rotation As String, _ ByVal Narrow As String, _ ByVal Wide As String, _ ByVal Code As String) Private Declare Sub printerfont Lib "c:\windows\system\tsclib.dll" ( _ ByVal X As String, _ ByVal Y As String, _ ByVal FontName As String, _ ByVal rotation As String, _ ByVal Xmul As String, _ ByVal Ymul As String, _ ByVal Content As String) Private Declare Sub clearbuffer Lib "c:\windows\system\tsclib.dll" ()

Private Declare Sub printlabel Lib "c:\windows\system\tsclib.dll" ( _ ByVal NumberOfSet As String, _ ByVal NumberOfCopy As String) Private Declare Sub formfeed Lib "c:\windows\system\tsclib.dll" () Private Declare Sub nobackfeed Lib "c:\windows\system\tsclib.dll" () Private Declare Sub windowsfont Lib "c:\windows\system\tsclib.dll" ( _ ByVal X As Integer, _ ByVal Y As Integer, _ ByVal fontheight As Integer, _ ByVal rotation As Integer, _ ByVal fontstyle As Integer, _ ByVal fontunderline As Integer, _ ByVal FaceName As String, _ ByVal TextContent As String) Private Sub Command1_Click() Call openport( TSC CLEVER TTP-243 ) Call openport( \\server\ttp243 ) 開啟網路印表機 Call openport( LPT1 ) Call openport( USB ) Call setup("100", "100", "3", "10", "0", "0", "0") Call clearbuffer Call downloadpcx("c:\ul.pcx", "UL.PCX") 直接開啟 LPT1 傳輸埠 直接開啟 USB 傳輸埠 Call printerfont("10", "10", "4", "0", "1", "1", "TEST PRINTOUT") Call barcode("10", "80", "39", "96", "1", "0", "2", "4", "0987654321") Call sendcommand("putpcx 100,250,""UL.PCX""") Call sendcommand("bar 400,200,300,100") Call sendcommand("box 10,300,300,300,5") Call windowsfont(10, 500, 80, 0, 0,0, " 標楷體 ", " 標楷體字型 ") Call printlabel("1", "1") Call closeport End Sub

FoxPro 範例 declare openport in c:\windows\system\tsclib.dll string declare closeport in c:\windows\system\tsclib.dll declare sendcommand in c:\windows\system\tsclib.dll declare setup in c:\windows\system\tsclib.dll string,string,string,string,string,string,string declare downloadpcx in c:\windows\system\tsclib.dll string, string declare barcode in c:\windows\system\tsclib.dll string,string,string,string,string,string,string,string,string declare printerfont in c:\windows\system\tsclib.dll string,string,string,string,string,string,string declare clearbuffer in c:\windows\system\tsclib.dll declare printlabel in c:\windows\system\tsclib.dll string,string declare formfeed in c:\windows\system\tsclib.dll declare nobackfeed in c:\windows\system\tsclib.dll declare windowsfont in c:\windows\system\tsclib.dll integer,integer,integer,integer,integer,integer,integer,string,string openport( TSC CLEVER TTP-243 ) setup("32","25","2","10","0","0","0") clearbuffer() barcode("10","0","ean13","80","1","0","2","4","123456789012") windowsfont(10,100,50,0,0,0," 標楷體 "," 標楷體字型 ") printlabel("1","1") closeport()

Delphi 宣告範例 procedure openport(printername:pchar);stdcall;far; external tsclib.dll ; procedure closeport; external tsclib.dll ; procedure sendcommand(command:pchar);stdcall;far;external tsclib.dll ; procedure setup(labelwidth, LabelHeight, Speed, Density, Sensor, Vertical, Offset:pchar);tsdcall; far; external tsclib.dll ; procedure downloadpcx(filename,imagename:pchar);stdcall;far; external tsclib.dll ; procedure barcode(x, Y, CodeType, Height, Readable, Rotation, Narrow, Wide, Code :pchar); stdcall; far; external tsclib.dll ; procedure printerfont(x, Y, FontName, Rotation, Xmul, Ymul, Content:pchar); stdcall;far; external tsclib.dll ; procedure clearbuffer; external tsclib.dll ; procedure printlabel(numberofset, NumberOfCopoy:pchar);stdcall; far; external tsclib.dll ; procedure formfeed;external tsclib.dll ; procedure nobackfeed; external tsclib.dll procedure windowsfont (X, Y, FontHeight, Rotation, FontStyle, FontUnderline : integer; FaceName, TextContect:pchar);stdcall;far;external tsclib.dll ; 請注意 : 函數名稱務必使用小寫字母