Files correlati : Ricompilazione Demo : [ ] Commento : Riportata la versione 3.1 patch 766 git-svn-id: svn://10.65.10.50/trunk@14628 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			1297 lines
		
	
	
		
			64 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			1297 lines
		
	
	
		
			64 KiB
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
~g2fk;
 | 
						||
    /******************************************************************************
 | 
						||
     Module: AWIN-CAPI.TXT
 | 
						||
             All commands for PPLA in Dynamic Link Library for Windows
 | 
						||
    Notices: Copyright (c) 1998-2006 ARGOIMPREX
 | 
						||
    Version: 3.04AW 2006/02/15
 | 
						||
    ******************************************************************************/
 | 
						||
    目錄
 | 
						||
    ===============================================================================
 | 
						||
	A_Bar2d_Maxi()		=> 印出一個 Maxi Code 2D Barcode。
 | 
						||
	A_Bar2d_Maxi_Ori()	=> 印出一個 Maxi Code 2D Barcode,含旋轉角度。
 | 
						||
	A_Bar2d_PDF417()	=> 印出一個 PDF-417 2D Barcode。
 | 
						||
	A_Bar2d_PDF417_Ori()	=> 印出一個 PDF-417 2D Barcode,含旋轉角度。
 | 
						||
	A_Bar2d_DataMatrix()	=> 印出一個 DataMatrix 2D Barcode
 | 
						||
	A_Clear_Memory()	=> 清除 Printer 內 RAM 及 Flash Memory 的資料。
 | 
						||
	A_ClosePrn()		=> 關閉 Printer 工作。
 | 
						||
	A_CreatePrn()		=> 開啟 Printer 工作。
 | 
						||
	A_Del_Graphic()		=> 刪除儲存在印表機 RAM 或 Flash Memory 內的圖形。
 | 
						||
	A_Draw_Box()		=> 畫一個框。
 | 
						||
	A_Draw_Line()		=> 畫一條線。
 | 
						||
	A_Feed_Label()		=> 送一張標籤。
 | 
						||
	A_Get_DLL_Version()	=> 取得或秀出此函數庫版本資訊。
 | 
						||
	A_Get_DLL_VersionA()	=> 取得或秀出此函數庫版本資訊。
 | 
						||
	A_Get_Graphic()		=> 列印一個圖形並將圖形儲存在印表機內的 RAM 
 | 
						||
                                或 Flash Memory。
 | 
						||
	A_Get_Graphic_ColorBMP()=> 轉換 BMP 圖檔彩色變灰階,並將圖形儲存在印表機
 | 
						||
                                內的 RAM 或 Flash Memory。
 | 
						||
	A_Initial_Setting()	=> 前置處理。
 | 
						||
	A_Load_Graphic()	=> 列印一個圖形。
 | 
						||
	A_Open_ChineseFont()	=> 開啟使用中文點矩陣字型檔案 (16*15 和 24*24)。    
 | 
						||
	A_Print_Form()		=> 列印一個 FORM (表格),並輸入 FORM 的名稱,並設定寬及
 | 
						||
                                高的比例和跳號次數與列印份數。
 | 
						||
	A_Print_Out()		=> 輸出所有資料並設定寬及高的比例和跳號次數與列印份數。
 | 
						||
	A_Prn_Barcode()		=> 印出一個條碼。
 | 
						||
	A_Prn_Text()		=> 印出一行文字。
 | 
						||
	A_Prn_Text_Chinese()	=> 印出一行文字,使用中文點矩陣字型檔案 (16*15 或 24*24)。
 | 
						||
	A_Prn_Text_TrueType()	=> 印出一行 True Type Font 文字。
 | 
						||
	A_Prn_Text_TrueType_W()	=> 印出一行 True Type Font 文字,並控制字型的寬及高。
 | 
						||
	A_Set_Backfeed()	=> 標籤回收停止位置。
 | 
						||
	A_Set_BMPSave()		=> 儲存影像圖檔。
 | 
						||
	A_Set_Cutting()		=> 設定指定印出幾張後切刀切一次。
 | 
						||
	A_Set_Darkness()	=> 設定熱感頭列印熱度。
 | 
						||
	A_Set_DebugDialog()	=> 設定除錯環境。
 | 
						||
	A_Set_Feed()		=> 設定標籤紙送出的速度。
 | 
						||
	A_Set_Form()		=> 儲存並列印 FORM (表格)。
 | 
						||
	A_Set_Margin()		=> 設定開始列印位置和左邊空白空間。
 | 
						||
	A_Set_Prncomport()	=> 設定印表機序列埠。
 | 
						||
	A_Set_Prncomport_PC()	=> 設定 PC 序列埠。
 | 
						||
	A_Set_Sensor_Mode()	=> 設定 SENSOR 模式或連續紙模式。
 | 
						||
	A_Set_Speed()		=> 設定列印速度。
 | 
						||
	A_Set_Syssetting()	=> 設定轉印模式、啟動 Cutter 或 Peel、設定標
 | 
						||
                                籤最長的長度、改變 slash zero 為 normal zero、設
 | 
						||
                                定每印一張暫停一次。
 | 
						||
	A_Set_Unit()		=> 設定度量單位為英吋或公尺。
 | 
						||
	A_Set_Gap()		=> 設定 Gap 距離
 | 
						||
	A_Set_Logic()		=> 設定反白功能
 | 
						||
	A_Set_ProcessDlg()	=> 開啟或關閉進度對話框
 | 
						||
	A_Set_LabelVer()	=> 設定紙張寬度 (For R400)
 | 
						||
	A_GetUSBBufferLen()	=> 查詢 USB 埠資料長度
 | 
						||
	A_EnumUSB()			=> 取得 USB 埠的資料
 | 
						||
	A_CreateUSBPort()	=> 使用 USB 埠進行傳輸
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    注意事項
 | 
						||
    ===============================================================================
 | 
						||
    使用方法:1.將 WINPPLA.DLL 加入 \\Windows\system\ 或 \\???\ 執行中路徑,
 | 
						||
                才能被搜尋到。
 | 
						||
	      2.以下範例為 Visual C++ 的範例,其他程式語言不一定完全相同
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_GetUSBBufferLen()
 | 
						||
	A_EnumUSB()
 | 
						||
    ===============================================================================
 | 
						||
	功能:	取得 USB Printer 的資料。
 | 
						||
 | 
						||
	語法:	int A_GetUSBBufferLen();
 | 
						||
			int A_EnumUSB(char *buf);
 | 
						||
 | 
						||
	參數:	char *buf;	●儲存 USB Printer 資料。
 | 
						||
 | 
						||
 | 
						||
	傳回值:	A_GetUSBBufferLen(); 傳回 USB 的資料長度
 | 
						||
				A_EnumUSB()	0 -> OK.
 | 
						||
							Reference AW-Error.txt file.
 | 
						||
 | 
						||
	範例:	char *buf;
 | 
						||
			int	nLen = A_GetUSBBufferLen()+1;
 | 
						||
			buf = malloc(nLen);
 | 
						||
			memset(buf, 0, nLen);
 | 
						||
			A_EnumUSB(buf);
 | 
						||
 | 
						||
	說明:	這兩個函數是一組的函數。先用 A_GetUSBBufferLen() 取得 USB 傳輸埠的資料
 | 
						||
			長度, 然後再配記憶體給 A_EnumUSB() 儲存 USB 埠的資料。USB 埠的資料是以
 | 
						||
			("0x0d0x0a")做分隔,舉例來說, 如果資料是 A-200(0x0d)(0x0a)R-400ZIP 的話
 | 
						||
			表示 USB1 是接 A-200, USB2 是接 R-400Zip。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_CreatePrn()
 | 
						||
	A_CreateUSBPort()
 | 
						||
    ===============================================================================
 | 
						||
	功能:	開啟 PPLA Library 工作。
 | 
						||
 | 
						||
	語法:	int A_CreatePrn(int selection,LPCTSTR filename);
 | 
						||
			int A_CreateUSBPort(int nPort);
 | 
						||
 | 
						||
	參數:	int	selection;		●擇輸出埠或檔案。
 | 
						||
								0 -> print to file.
 | 
						||
								1 -> lpt1, 2 -> lpt2, 3 -> lpt3
 | 
						||
								4 -> com1, 5 -> com2, 6 -> com3
 | 
						||
								10 -> net
 | 
						||
					 
 | 
						||
			LPCTSTR	filename;	●當 selection 內容是 0 時,資料則輸出至
 | 
						||
								檔案,檔名就是 filename 內容或是 NULL,
 | 
						||
								可含路徑。當 selection 內容是 10 時,
 | 
						||
								filename 為輸出路徑。
 | 
						||
			int	nPort;			● USB 傳輸埠
 | 
						||
 | 
						||
	傳回值:0 -> OK.
 | 
						||
		Reference AW-Error.txt file.
 | 
						||
 | 
						||
	範例:	A_CreatePrn(1,NULL); 或 A_CreatePrn(0,"C:\TEMP\out.prn");
 | 
						||
			A_CreatePrn(10,"\\allen\Label"); 或 A_CreateUSBPort(1);
 | 
						||
 | 
						||
	說明:	A_CreatePrn 和 A_CreateUSBPort 函數會開啟你選擇的輸出埠或開啟你鍵入的
 | 
						||
			輸出檔。而這個函數必須在所有函數之前執行。
 | 
						||
		A_CreatePrn 和 A_CreateUSBPort 不能同時使用。
 | 
						||
 | 
						||
	*******************************************************************************
 | 
						||
    A_ClosePrn()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  關閉 A_Printer 工作。
 | 
						||
 | 
						||
      語法:  void A_ClosePrn(void);
 | 
						||
 | 
						||
      範例:  A_ClosePrn();
 | 
						||
 | 
						||
     說明:  這個 A_ClosePrn 函數會關閉你選擇的輸出埠或關閉你開啟的輸出檔。而這
 | 
						||
              個函數必須在所有函數之後執行。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Bar2d_Maxi()
 | 
						||
    A_Bar2d_Maxi_Ori()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  印出一個 Maxi Code 2D Barcode。
 | 
						||
 | 
						||
      語法:  int A_Bar2d_Maxi(int x,int y,long int primary,int secondary,int country,
 | 
						||
                               int service,char mode,int numeric,LPCTSTR data);
 | 
						||
              int A_Bar2d_Maxi_Ori(int x,int y,int ori,long int primary,int secondary,
 | 
						||
                                   int country,int service,char mode,int numeric,
 | 
						||
                                   LPCTSTR data);
 | 
						||
 | 
						||
      參數:  int      x;                ●X 座標。 (100 = 1 inch)
 | 
						||
              int      y;                ●Y 座標。
 | 
						||
              int      ori;              ●列印方向定位,1:0°  、2:90°、
 | 
						||
                                                         3:180°、4:270°
 | 
						||
              long int primary;          ●A 5-位數 primary zip code.
 | 
						||
              int      secondary;        ●A 4-位數 secondary zip code.
 | 
						||
              int      country;          ●A 3-位數 country code.
 | 
						||
              int      service;          ●A 3-位數 service code.
 | 
						||
              char     mode;             ●附加功能,如下表:
 | 
						||
                                           ╒══╤═════════╕
 | 
						||
                                           │mode│     功能說明     │
 | 
						||
                                           ╞══╪═════════╡
 | 
						||
                                           │ A  │對數字自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ B  │對字母自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ C  │對數字自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ D  │對字母自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ T  │改變終結字元      │
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ N  │無須任何功能      │
 | 
						||
                                           └──┴─────────┘
 | 
						||
              int      numeric;          ●自動增加或減少跳號量。範圍:0~99
 | 
						||
                                           當有附加功能時此欄位必須存在。
 | 
						||
              LPCTSTR  data;             ●資料字串,最多84個字元。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Bar2d_Maxi(100,200,32987,444,40,55,'n',2,"TO 123");
 | 
						||
			  A_Bar2d_Maxi_Ori(100,200,0,32987,444,40,55,'n',2,"TO 123");
 | 
						||
    
 | 
						||
     說明:  這個 A_Bar2d_Maxi 函數可以列印出一個 Maxi Code 2D Barcode。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Bar2d_PDF417()
 | 
						||
    A_Bar2d_PDF417_Ori()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  印出一個 PDF-417 2D Barcode。
 | 
						||
 | 
						||
      語法:  int A_Bar2d_PDF417(int x,int y,int narrow,int width, char normal,
 | 
						||
                                 int security,int aspect,int row,int column,
 | 
						||
                                 char mode,int numeric,LPCTSTR data);
 | 
						||
              int A_Bar2d_PDF417_Ori(int x,int y,int ori,int narrow,int width,
 | 
						||
                                     char normal,int security,int aspect,int row,
 | 
						||
                                     int column,char mode,int numeric,LPCTSTR data);
 | 
						||
 | 
						||
      參數:  int    x;                  ●X 座標。(100 = 1 inch)
 | 
						||
              int    y;                  ●Y 座標。
 | 
						||
              int    ori;                ●列印方向定位,1:0°  、2:90°、
 | 
						||
                                                         3:180°、4:270°
 | 
						||
              int    narrow;             ●NARROW bar 寬度,範圍 0~24。
 | 
						||
              int    width;              ●WIDE bar 寬度,範圍 0~24。
 | 
						||
              char   normal;             ●F:normal, T:truncated.
 | 
						||
              int    security;           ●0~8:security level.
 | 
						||
              int    aspect;             ●0~99:aspect ratio,0 stands for 1:2.
 | 
						||
              int    row;                ●3~90:row number,0 for best fit.
 | 
						||
              int    column;             ●1~30:column number,0 for best fit.
 | 
						||
              char   mode;               ●附加功能,如下表:
 | 
						||
                                           ╒══╤═════════╕
 | 
						||
                                           │mode│     功能說明     │
 | 
						||
                                           ╞══╪═════════╡
 | 
						||
                                           │ A  │對數字自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ B  │對字母自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ C  │對數字自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ D  │對字母自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ T  │改變終結字元      │
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ N  │無須任何功能      │
 | 
						||
                                           └──┴─────────┘
 | 
						||
              int    numeric;            ●自動增加或減少跳號量。範圍:0~99
 | 
						||
                                           當有附加功能時此欄位必須存在。
 | 
						||
                                           當 mode 為 T 時,此攔為終結字元值(十進位)。
 | 
						||
              LPCTSTR   data;            ●資料字串。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Bar2d_PDF417(260,0,0,0,'f',0,0,10,2,'b',1,"ARGOXINFO");
 | 
						||
              A_Bar2d_PDF417_Ori(260,0,0,0,'f',0,0,10,2,'T',64,"ARGOXINFO\nData 12345\nData 444");
 | 
						||
 | 
						||
     說明:  這個 A_Bar2d_PDF417 函數可以列印出一個 PDF-417 2D Barcode。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Bar2d_DataMatrix()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  印出一個 DataMatrix Code 2D Barcode。
 | 
						||
 | 
						||
      語法:  int A_Bar2d_DataMatrix(int x, int y,int rotation,int hor_mul,
 | 
						||
			int ver_mul,int ECC,int data_format,int num_rows,int num_col,
 | 
						||
			char mode,int numeric,LPCTSTR data);
 | 
						||
 | 
						||
      參數:	int	x;		●X 座標。 (100 = 1 inch)
 | 
						||
		int	y;		●Y 座標。
 | 
						||
		int	rotation;	●列印方向定位,1:0°、2:90°、3:180°、4:270°
 | 
						||
		int	hor_mul;	●水平放大倍數。
 | 
						||
		int	ver_mul;	●垂直放大倍數。
 | 
						||
			hor_mul,ver_mul : 1 ~ 24
 | 
						||
		int	ECC;		●偵錯等級。固定值:200
 | 
						||
		int	data_format;	●資料分類。固定值:0
 | 
						||
		int	num_rows;	●row number
 | 
						||
		int	num_col;	●column number
 | 
						||
			num_rows,num_col value : 10,12,14,16,18,20,22,24,26,32,36,
 | 
						||
					40,44,,48,52,64,72,80,88,96,104,120,132,144	
 | 
						||
              char     mode;             ●附加功能,如下表:
 | 
						||
                                           ╒══╤═════════╕
 | 
						||
                                           │mode│     功能說明     │
 | 
						||
                                           ╞══╪═════════╡
 | 
						||
                                           │ A  │對數字自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ B  │對字母自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ C  │對數字自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ D  │對字母自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ T  │改變終結字元      │
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ N  │無須任何功能      │
 | 
						||
                                           └──┴─────────┘
 | 
						||
              int      numeric;          ●自動增加或減少跳號量。範圍:0~99
 | 
						||
                                           當有附加功能時此欄位必須存在。
 | 
						||
              LPCTSTR  data;             ●資料字串。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Bar2d_DataMatrix(100,100,1,8,8,200,0,24,24,'n',2,"DATAMATRIX");
 | 
						||
    
 | 
						||
     說明:  這個 A_Bar2d_DataMatrix 函數可以列印出一個 DataMatrix 2D Barcode。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Clear_Memory()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  清除 Printer 內 RAM 及 Flash Memory 的資料。
 | 
						||
 | 
						||
      語法:  void A_Clear_Memory(void);
 | 
						||
 | 
						||
      範例:  A_Clear_Memory();
 | 
						||
 | 
						||
     說明:  這個 A_Clear_Memory 函數清除 Printer 內 RAM 及 Flash Memory 的圖形
 | 
						||
              、軟體字形。因為圖形、字形會一直累積在 memory 造成 overflow,正常
 | 
						||
              時函數須在 Print_Out() 之前送出。而當 memory 充滿指令,Printer 就
 | 
						||
              會刪除先前載入的圖形和字形,為避免發生不當的刪除,須先在
 | 
						||
              A_Print_Out() 之前送出。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Del_Graphic()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  刪除儲存在印表機 RAM 或 Flash Memory 內的圖形。
 | 
						||
 | 
						||
      語法:  int A_Del_Graphic(int mem_mode,char graphic[10]);
 | 
						||
 | 
						||
      參數:  int    mem_mode;           ●記憶體模式, 1 => RAM
 | 
						||
                                                        2 => Flash Memory 
 | 
						||
              char   graphic[10];        ●圖形名稱,最多 9 個字。
 | 
						||
                                           
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Del_Graphic(1,"AA");
 | 
						||
 | 
						||
     說明:  這個 A_Del_Graphic 函數會刪除儲存在印表機 RAM 或 Flash Memory 內的圖形,
 | 
						||
              你輸入的圖形名稱。當你刪除它後,將不能再還原,但可以重新載入。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Draw_Box()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  畫一個框。
 | 
						||
 | 
						||
      語法:  int A_Draw_Box(char mode,int x,int y,int width,int height, int top,
 | 
						||
                             int side);
 | 
						||
 | 
						||
      參數:  char   mode;               ●設定邏輯 OR 或 XOR 功能。A:XOR、N:OR
 | 
						||
                                           一般是 XOR 選項。
 | 
						||
              int    x;                  ●X 座標。
 | 
						||
              int    y;                  ●Y 座標。
 | 
						||
              int    width;              ●指定框的寬度,範圍:0~9999。
 | 
						||
              int    height;             ●指定框的高度,範圍:0~9999。
 | 
						||
              int    top;                ●指定框的頂及底線條厚度,
 | 
						||
                                           範圍:0~9999。
 | 
						||
              int    side;               ●指定框兩側邊線條厚度,範圍:0~9999
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Draw_Box('n',260,30,130,105,4,4);
 | 
						||
 | 
						||
     說明:  這個 A_Draw_Box 函數會畫一個屬性是 "OR" 或 "XOR" 的框。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Draw_Line()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  畫一條線。
 | 
						||
 | 
						||
      語法:  int A_Draw_Line(char mode,int x,int y,int width,int height);
 | 
						||
 | 
						||
      參數:  char   mode;               ●設定邏輯 OR 或 XOR 功能。A =>XOR、N =>OR
 | 
						||
                                           一般是 XOR 選項。
 | 
						||
              int    x;                  ●X 座標。
 | 
						||
              int    y;                  ●Y 座標。
 | 
						||
              int    width;              ●指定線條的寬度,範圍:0~9999。
 | 
						||
              int    height;             ●指定線條的高度,範圍:0~9999。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Draw_Line('a',285,77,2,30);
 | 
						||
 | 
						||
     說明:  這個 A_Draw_Line 函數會畫一個屬性是 "OR" 或 "XOR" 的線條。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Feed_Label()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  送一張標籤。
 | 
						||
 | 
						||
      語法:  void A_Feed_Label(void);
 | 
						||
 | 
						||
      範例:  A_Feed_Label();
 | 
						||
 | 
						||
     說明:  這個 A_Feed_Label 函數當不是設定為連續紙時,將會吐一張標籤一直到被
 | 
						||
              檢測出 gap 為止。當是設定為連續紙時,會吐一張固定長度的標籤。基本
 | 
						||
              上,這函數意同於按 "Feed" 鍵一樣。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Get_DLL_Version()
 | 
						||
	A_Get_DLL_VersionA()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  取得或秀出此函數庫版本資訊。
 | 
						||
 | 
						||
      語法:  char* A_Get_DLL_Version(int nShowMessage); 
 | 
						||
			  int A_Get_DLL_VersionA(int nShowMessage); 
 | 
						||
 | 
						||
      參數:  int    nShowMessage;       ●訊息視窗顯現。0 -> 不顯現、1 -> 顯現。
 | 
						||
 | 
						||
    傳回值:  A_Get_DLL_Version() -> 傳回版本資訊字串,失敗則傳回 NULL。
 | 
						||
			  A_Get_DLL_VersionA() -> return version value.
 | 
						||
 | 
						||
      範例:  A_Get_DLL_Version(1);
 | 
						||
 | 
						||
     說明:  這個 A_Get_DLL_Version 函數,讓使用者取得或秀出此函數庫版本資訊。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Get_Graphic()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  列印一個圖形並將圖形儲存在印表機內的 RAM 或 Flash Memory。
 | 
						||
 | 
						||
      語法:  int A_Get_Graphic(int x,int y,int mem_mode,char format,LPCTSTR filename);
 | 
						||
 | 
						||
      參數:  int    x;                  ●X 座標。
 | 
						||
              int    y;                  ●Y 座標。
 | 
						||
              int    mem_mode;           ●記憶體模式, 1 => RAM
 | 
						||
                                                            2 => Flash Memory 
 | 
						||
              char   format;             ●圖形檔格式,如下表:
 | 
						||
                                       ╒═══╤═══════════╤══╕
 | 
						||
                                       │format│      圖形檔格式      │方向│
 | 
						||
                                       ╞═══╪═══════════╪══╡
 | 
						||
                                       │   B  │ 8-bit BMP file format│正  │
 | 
						||
                                       ├───┼───────────┼──┤
 | 
						||
                                       │   b  │ 8-bit BMP file format│反  │
 | 
						||
                                       ├───┼───────────┼──┤
 | 
						||
                                       │   I  │ 8-bit IMG file format│正  │
 | 
						||
                                       ├───┼───────────┼──┤
 | 
						||
                                       │   i  │ 8-bit IMG file format│反  │
 | 
						||
                                       ├───┼───────────┼──┤
 | 
						||
                                       │   P  │ 8-bit PCX file format│正  │
 | 
						||
                                       ├───┼───────────┼──┤
 | 
						||
                                       │   p  │ 8-bit PCX file format│反  │
 | 
						||
                                       └───┴───────────┴──┘
 | 
						||
              LPCTSTR filename         ●圖形檔名稱,可含路徑。
 | 
						||
                                           格式如:XXXXXXXX.XXX 或 X:\XXX\XXX.XXX
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Get_Graphic(275,50,1,'B',"bb.bmp");
 | 
						||
 | 
						||
     說明:  這個 A_Get_Graphic 函數會列印一個圖形並將圖形儲存在印表機內的 RAM 
 | 
						||
              或 Flash Memory。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Get_Graphic_ColorBMP()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  轉換 BMP 圖檔彩色變灰階,並將圖形儲存在印表機內的 RAM 或 Flash Memory。
 | 
						||
 | 
						||
      語法:  int A_Get_Graphic_ColorBMP(int x,int y,int mem_mode,char format,
 | 
						||
                                       LPCTSTR filename);
 | 
						||
 | 
						||
      參數:  int    x;                  ●X 座標。
 | 
						||
              int    y;                  ●Y 座標。
 | 
						||
              int    mem_mode;           ●記憶體模式, 1 => RAM
 | 
						||
                                                            2 => Flash Memory
 | 
						||
              char   format;             ●圖形檔格式,如下表:
 | 
						||
                                           ╒═══╤═════╤══╕
 | 
						||
                                           │format│圖形檔格式│方向│
 | 
						||
                                           ╞═══╪═════╪══╡
 | 
						||
                                           │   B  │BMP format│正  │
 | 
						||
                                           ├───┼─────┼──┤
 | 
						||
                                           │   b  │BMP format│反  │
 | 
						||
                                           └───┴─────┴──┘
 | 
						||
              LPCTSTR filename           ●圖形檔名稱,可含路徑。
 | 
						||
                                           格式如:XXXXXXXX.XXX 或 X:\XXX\XXX.BMP
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Get_Graphic_ColorBMP(30,20,1,'B',"girl.bmp");
 | 
						||
 | 
						||
     說明:  這個 A_Get_Graphic_ColorBMP 函數可輸入任何顏色 BMP 圖檔,並自動轉換為
 | 
						||
              黑白灰階圖檔送至印表機列印,而轉換品質由 Windows's Driver for Dr.200
 | 
						||
              or Dr.300 調整,所以使用者必需安裝 ARGOX Driver,印表機抓取為預設印表機,
 | 
						||
              假若 default printer 不是 Dr.200 或 Dr.300 ,程式自動搜尋 Windows 內,
 | 
						||
              是否有裝 Dr.200 或 Dr.300,再依序使用。圖形儲存在印表機內的 RAM 或
 | 
						||
              Flash Memory。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Initial_Setting()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  前置處理。
 | 
						||
 | 
						||
      語法:  int A_Initial_Setting(int Type,LPCTSTR Source);
 | 
						||
 | 
						||
      參數:  int       Type;            ●選擇輸入模式,值為 0 -> 輸入字串,
 | 
						||
                                                              1 -> 輸入檔案。
 | 
						||
              LPCTSTR   Source;          ●資料來源,可為字串或檔案名稱,可含路徑。
 | 
						||
                                           
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  LPCTSTR aa = "ZT\r\n\0"; A_Initial_Setting(0,aa);
 | 
						||
              or
 | 
						||
              A_Initial_Setting(1,"initfile.txt");
 | 
						||
 | 
						||
     說明:  這個 A_Initial_Setting 函數前置處理的動作,是將一串 Command 先送至印表
 | 
						||
              機,由字串或檔案輸入,在使用這個函數時,須先在 A_Create_Prn() 之後其他
 | 
						||
              函數之前,可作為使用者自訂型態。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Load_Graphic()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  列印一個圖形。
 | 
						||
 | 
						||
      語法:  int A_Load_Graphic(int x,int y,char graphic_name[10]);
 | 
						||
 | 
						||
      參數:  int    x;                  ●X 座標。
 | 
						||
              int    y;                  ●Y 座標。備註:1 dot = 0.125 mm。
 | 
						||
              char   graphic_name[10];   ●圖形檔名稱最大9個字元。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Load_Graphic(265,35,"AB");
 | 
						||
 | 
						||
     說明:  這個 A_Load_Graphic 函數會列印一個之前載入過的圖檔,而圖形必須事先載入印表
 | 
						||
              機內的 RAM 或 flash memory 儲存。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Open_ChineseFont()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  開啟使用中文點矩陣字型檔案 (16*15 和 24*24)。
 | 
						||
 | 
						||
      語法:  int A_Open_ChineseFont(char* path);
 | 
						||
 | 
						||
      參數:  char*  path;               ●中文點矩陣字型檔案來源路徑。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Open_ChineseFont("C:\\ET3");
 | 
						||
 | 
						||
     說明:  這個 A_Open_ChineseFont 函數開啟中文點矩陣字型檔案 (16*15 和 24*24),
 | 
						||
              供 A_Prn_Text_Chinese 函數使用。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Print_Form()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  列印一個 FORM (表格),並輸入 FORM 的名稱,並設定寬及高的比例和跳號次
 | 
						||
              數與列印份數。
 | 
						||
 | 
						||
      語法:  int A_Print_Form(int width,int height,int copies,int amount,
 | 
						||
                               LPTSTR form_name);
 | 
						||
 | 
						||
      參數:  int    width;              ●寬比,範圍:1 或 2。
 | 
						||
              int    height;             ●高比,範圍:1、2 或 3。
 | 
						||
              int    copies;             ●你想列印的份數,範圍:1~9999。
 | 
						||
              int    amount;             ●指定的數字將會使每跳一號印幾張,
 | 
						||
                                           範圍:1~99。
 | 
						||
              LPTSTR form_name;          ●輸入 FORM 的名稱,可一個或多個一起,但
 | 
						||
                                                   必須用 ","依序分別區隔開。
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Print_Form(1,1,1,1,"demo");
 | 
						||
 | 
						||
     說明:  這個 A_Print_Form 函數會送所有資料及表格到 Printer,這個函數使用前
 | 
						||
              須先執行 A_Set_Form(),並在所有函數之後,A_ClosePrn() 之前執行。當使
 | 
						||
              用此函數時,就不須執行 A_Print_Out()。
 | 
						||
              這 width 和 height 兩參數,是設定寬與高的比例。當比例設為最大時,
 | 
						||
              圖形可能會因放大而出現鋸齒狀。
 | 
						||
 | 
						||
    ***************************************************************************
 | 
						||
    A_Print_Out()
 | 
						||
    ===========================================================================
 | 
						||
      功能:  輸出所有資料並設定寬及高的比例和跳號次數與列印份數。
 | 
						||
 | 
						||
      語法:  int A_Print_Out(int width,int height,int copies,int amount);
 | 
						||
 | 
						||
      參數:  int    width;              ●寬比,範圍:1 或 2。
 | 
						||
              int    height;             ●高比,範圍:1、2 或 3。
 | 
						||
              int    copies;             ●你想列印的份數,範圍:1~9999。
 | 
						||
              int    amount;             ●指定的數字將會使每跳一號印幾張,
 | 
						||
                                           範圍:1~99。
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Print_Out(1,1,3,1);
 | 
						||
 | 
						||
     說明:  這個 A_Print_Out 函數會送所有資料到 Printer,這個函數使用須在所有函
 | 
						||
              數之後,A_ClosePrn() 之前。
 | 
						||
              這 width 和 height 兩參數,是設定寬與高的比例。當比例設為最大時,
 | 
						||
              圖形可能會因放大而出現鋸齒狀。這 amount 參數指定的數字將會使跳號
 | 
						||
              功能,每列印幾張跳號或減號一次。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Prn_Barcode()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  印出一個條碼。
 | 
						||
 | 
						||
      語法:  int A_Prn_Barcode(int x,int y,int ori,char type,int narrow,int width,
 | 
						||
                                int height,char mode, int numeric,LPTSTR data);
 | 
						||
 | 
						||
      參數:  int    x;                  ●X 座標。
 | 
						||
              int    y;                  ●Y 座標。
 | 
						||
              int    ori;                ●列印方向定位,1:0°  、2:90°、
 | 
						||
                                                         3:180°、4:270°
 | 
						||
              char   type;               ●Bar code 型式、如下表:
 | 
						||
    ╒══════╤═════╤══╤════╤════╤═════╤═══╕
 | 
						||
    │  條碼型式  │ 資料長度 │檢測│顯示資料│隱藏資料│ 資料屬性 │ 條碼 │
 | 
						||
    │            │          │碼  │(type)  │(type)  │          │ 比例 │
 | 
						||
    ╞══════╪═════╪══╪════╪════╪═════╪═══╡
 | 
						||
    │Code 3 of 9 │variable  │no  │'A'     │'a'     │0~9,A~Z,│2:1~ │
 | 
						||
    │            │          │    │        │        │$%*+-./and│3:1   │
 | 
						||
    │            │          │    │        │        │space     │    │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │UPC-A       │12 digis  │yes │'B'     │'b'     │0~9      │2:3:4 │
 | 
						||
    │            │(11+1)    │    │        │        │          │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │UPC-E       │7 digis   │yes │'C'     │'c'     │0~9      │2:3:4 │
 | 
						||
    │            │(6+1)     │    │        │        │          │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Interleaved │variable  │no  │'D'     │'d'     │0~9      │2:1~ │
 | 
						||
    │2 of 5 (I25)│          │    │        │        │          │3:1   │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Code 128    │variable  │yes │'E'     │'e'     │form code │2:3:4 │
 | 
						||
    │            │          │    │        │        │0 to 127  │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │EAN-13      │13 digis  │yes │'F'     │'f'     │0~9      │2:3:4 │
 | 
						||
    │            │(12+1)    │    │        │        │          │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │EAN-8       │8 digis   │yes │'G'     │'g'     │0~9      │2:3:4 │
 | 
						||
    │            │(7+1)     │    │        │        │          │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │HBIC        │variable  │yes │'H'     │'h'     │0~9,A~Z,│2:1~ │
 | 
						||
    │            │          │    │        │        │$%*+-./and│3:1   │
 | 
						||
    │            │          │    │        │        │space     │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Code bar    │at least 3│no  │'I'     │'i'     │0~9,A~Z,│2:1~ │
 | 
						||
    │            │characters│    │        │        │$+-.and / │3:1   │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Interleaved │variable  │yes │'J'     │'j'     │0~9      │2:1~ │
 | 
						||
    │2 of 5 with └─────┤    │        │        │          │3:1   │
 | 
						||
    │a modulo 10 checksum    │    │        │        │          │      │
 | 
						||
    ├──────┬─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Plessey     │1~14     │yes │'K'     │'k'     │0~9      │2:1~ │
 | 
						||
    │            │digits    │    │        │        │          │3:1   │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Interleaved │variable  │yes │'L'     │'l'     │0~9      │2:1~ │
 | 
						||
    │2 of 5 with └─────┴──┴────┴────┤          │3:1   │
 | 
						||
    │a modulo 10 checksum and shipping bearer bars     │          │      │
 | 
						||
    ├──────┬─────┬──┬────┬────┼─────┼───┤
 | 
						||
    │UPC2        │2 digits  │no  │'M'     │'m'     │0~9      │2:3:4 │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │UPC5        │5 digits  │no  │'N'     │'n'     │0~9      │2:3:4 │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Code 93     │variable  │no  │'O'     │'o'     │0~9,A~Z,│2:3:4 │
 | 
						||
    │            │          │    │        │        │$%*+-./and│      │
 | 
						||
    │            │          │    │        │        │space     │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Postnet     │variable  │yes │not     │'p'     │0~9      │      │
 | 
						||
    │            │          │    │defined │        │          │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │UCC/EAN Code│20 digits │YES │'Q'     │'q'     │0~9      │2:3:4 │
 | 
						||
    │128         │(19+1)    │    │        │        │          │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │UCC/EAN Code│18 digits │YES │'R'     │'r'     │0~9      │2:3:4 │
 | 
						||
    │128 K-MART  │          │    │        │        │          │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Matrix 2 5  │variable  │no  │'S'     │'s'     │0~9       │2:1~  │
 | 
						||
    │            │          │    │        │        │          │3:1   │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │Telepen     │variable  │YES │'T'     │'t'     │form code │2:3:4 │
 | 
						||
    │            │          │    │        │        │0 to 127  │      │
 | 
						||
    ├──────┼─────┼──┼────┼────┼─────┼───┤
 | 
						||
    │FIM         │1         │no  │not     │'v'     │A,B,C and │      │
 | 
						||
    │            │character │    │defined │        │D         │      │
 | 
						||
    └──────┴─────┴──┴────┴────┴─────┴───┘
 | 
						||
                               備註:見 ARGOX Programmer Manual 第 63~76 頁。
 | 
						||
              int    narrow;             ●NARROW bar 寬度,範圍 0~24。
 | 
						||
              int    width;              ●WIDE bar 寬度,範圍 0~24。
 | 
						||
              int    height;             ●Bar code 高度,範圍 0~999。
 | 
						||
              char   mode;               ●附加功能,如下表:
 | 
						||
                                           ╒══╤═════════╕
 | 
						||
                                           │mode│     功能說明     │
 | 
						||
                                           ╞══╪═════════╡
 | 
						||
                                           │ A  │對數字自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ B  │對字母自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ C  │對數字自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ D  │對字母自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ N  │無須任何功能      │
 | 
						||
                                           └──┴─────────┘
 | 
						||
              int    numeric;            ●自動增加或減少跳號量。範圍:0~99
 | 
						||
                                           當有附加功能時此欄位必須存在。
 | 
						||
              LPTSTR    data;            ●資料字串。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Prn_Barcode(150,20,4,'A',0,0,20,'b',1,"ABCD");
 | 
						||
 | 
						||
     說明:  這個 A_Prn_Barcode 函數可以列印出一個特定 Barcode。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Prn_Text()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  印出一行文字。
 | 
						||
 | 
						||
      語法:  int A_Prn_Text(int x,int y,int ori,int font,int type,int hor_factor,
 | 
						||
                           int ver_factor,char mode,int numeric,LPCTSTR data);
 | 
						||
 | 
						||
      參數:  int    x;                  ●X 座標。
 | 
						||
              int    y;                  ●Y 座標。
 | 
						||
              int    ori;                ●列印方向定位,1:0°  、2:90°、
 | 
						||
                                                         3:180°、4:270°
 | 
						||
              int    font;               ●字型型式,如下表:
 | 
						||
                                         備註:查閱字型表見 ARGOX User's Manual
 | 
						||
              int    type;               ●見下表:
 | 
						||
                           ╒═══════╤══╤═════════════╕
 | 
						||
                           │font          │type│        字型型式          │
 | 
						||
                           ╞═══════╪══╪═════════════╡
 | 
						||
                           │0,1,2,3,4,5,6,│0   │0~8 印表機內部儲存字體   │
 | 
						||
                           │7,8           │    │                          │
 | 
						||
                           ├───────┼──┼─────────────┤
 | 
						||
                           │9             │0~7│ASD smooth fonts.         │
 | 
						||
                           │              │    │0:4points, 1:6points,     │
 | 
						||
                           │              │    │2:8points, 3:10points,    │
 | 
						||
                           │              │    │4:12points,5:14points,    │
 | 
						||
                           │              │    │6:18points.               │
 | 
						||
                           ├───────┼──┼─────────────┤
 | 
						||
                           │11            │0~7│Courier fonts,            │
 | 
						||
                           │              │    │(0 represents symbol set) │
 | 
						||
                           │              │    │0:Roman-8,  1:ECMA-94,    │
 | 
						||
                           │              │    │2:PC set,   3:PC set A,   │
 | 
						||
                           │              │    │4:PC set B, 5:Legal,      │
 | 
						||
                           │              │    │6:Greek,    7:Russian.    │
 | 
						||
                           ├───────┼──┼─────────────┤
 | 
						||
                           │12            │0   │讀取字型卡字體            │
 | 
						||
                           └───────┴──┴─────────────┘
 | 
						||
              int    hor_factor;         ●水平放大比例,範圍:0~24,0:Printer defuault。
 | 
						||
              int    ver_factor;         ●垂直放大比例,範圍:0~24,0:Printer defuault。
 | 
						||
              char   mode;               ●附加功能,如下表:
 | 
						||
                                           ╒══╤═════════╕
 | 
						||
                                           │mode│     功能說明     │
 | 
						||
                                           ╞══╪═════════╡
 | 
						||
                                           │ A  │對數字自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ B  │對字母自動增加跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ C  │對數字自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ D  │對字母自動減少跳號│
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ M  │鏡面反射模式      │
 | 
						||
                                           ├──┼─────────┤
 | 
						||
                                           │ N  │無須任何功能      │
 | 
						||
                                           └──┴─────────┘
 | 
						||
              int    numeric;            ●自動增加或減少跳號量。範圍:0~99
 | 
						||
                                           當有附加功能時此欄位必須存在。
 | 
						||
              LPCTSTR   data;            ●資料字串。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Prn_Text(310,35,1,9,0,1,1,'n',2,"PPLA COMMAND");
 | 
						||
 | 
						||
     說明:  這個 A_Prn_Text 函數可以列印出一行文字。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Prn_Text_Chinese()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  印出一行文字,使用中文點矩陣字型檔案 (16*15 或 24*24)。
 | 
						||
 | 
						||
      語法:  int A_Prn_Text_Chinese(int x,int y,int fonttype,LPCTSTR id_name,
 | 
						||
                                   LPCTSTR data,int mem_mode);
 | 
						||
      
 | 
						||
      參數:  int      x;                ●X 座標。(dot)
 | 
						||
              int      y;                ●Y 座標。(dot)
 | 
						||
              int      fonttype;         ●矩陣字型選擇。
 | 
						||
                                           0 -> 16*15、1 -> 24*24。
 | 
						||
              LPCTSTR  id_name;          ●給予一個識別名稱存放於印表機內,以後直
 | 
						||
                                           接使用 Load_Pcx() 即可將舊圖呼叫出來。
 | 
						||
              LPCTSTR  data;             ●文字內容。
 | 
						||
              int      mem_mode;         ●記憶體模式, 1 => RAM
 | 
						||
                                                        2 => Flash Memory
 | 
						||
        
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Open_ChineseFont("C:\\ET3");
 | 
						||
              A_Prn_Text_Chinese(100, 100, 0,"A01","國家利益當前AbCcDd", 1);
 | 
						||
 | 
						||
     說明:  這個 A_Prn_Text_Chinese 函數可以印出一行文字,使用中文點矩陣字型檔案
 | 
						||
              (16*15 或 24*24)。
 | 
						||
              但須先安裝 Window's Driver for Dr.200 or Dr.300,濃淡從 driver 設定,
 | 
						||
              印表機抓取為預設印表機,假若default printer 不是 Dr.200 或 Dr.300 ,
 | 
						||
              程式自動搜尋 Windows 內,是否有裝 Dr.200 或 Dr.300,在依序使用。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Prn_Text_TrueType()
 | 
						||
	A_Prn_Text_TrueType_W()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  印出一行 True Type Font 文字。
 | 
						||
 | 
						||
      語法:  int A_Prn_Text_TrueType(int x, int y, int FSize, LPCTSTR FType,
 | 
						||
						int Fspin, int FWeight, int FItalic, int FUnline,
 | 
						||
						int FStrikeOut, LPCTSTR id_name, LPCTSTR data, int mem_mode);
 | 
						||
 | 
						||
              int A_Prn_Text_TrueType_W(int x, int y, int FHeight, int FWidth,
 | 
						||
						LPCTSTR FType,	int Fspin, int FWeight, int FItalic,
 | 
						||
						int FUnline, int FStrikeOut, LPCTSTR id_name, LPCTSTR data,
 | 
						||
						int mem_mode);
 | 
						||
 | 
						||
      參數:  int      x;                ●X 座標。
 | 
						||
              int      y;                ●Y 座標。備註:1 dot = 0.125 mm。
 | 
						||
              int      FSize;            ●字型尺寸,單位為點(dot)。
 | 
						||
											FSize = (dpi * point) / 72.
 | 
						||
			  int      FHeight;          ●字型高度,單位為點(dot)。
 | 
						||
											FHeight = (dpi * point) / 72.
 | 
						||
              int      FWidth;           ●字型寬度,單位為點(dot)。
 | 
						||
											FWidth = (dpi * point) / 72.
 | 
						||
              LPCTSTR  FType;            ●TrueType font 字型名稱。
 | 
						||
              int      Fspin;            ●TrueType font 字體旋轉。
 | 
						||
                                           1 -> 0, 2 -> 90, 3 -> 180, 4 -> 270
 | 
						||
              int      FWeight;          ●TrueType font 字體粗細。
 | 
						||
                                           0 and NULL and 400 -> 400 標準、
 | 
						||
                                           100 -> 非常細、200 -> 極細、
 | 
						||
                                           300 -> 細    、500 -> 中等、
 | 
						||
                                           600 -> 半粗  、700 -> 粗  、
 | 
						||
                                           800 -> 特粗  、900 -> 黑體。
 | 
						||
              int      FItalic;          ●TrueType font 字體斜體。
 | 
						||
                                           0 -> FALSE、1 -> TRUE。
 | 
						||
              int      FUnline;          ●TrueType font 字體加底線。
 | 
						||
                                           0 -> FALSE、1 -> TRUE。
 | 
						||
              int      FStrikeOut;       ●TrueType font 字體加刪除線。
 | 
						||
                                           0 -> FALSE、1 -> TRUE。
 | 
						||
              LPCTSTR  id_name;          ●給予一個識別名稱存放於印表機內,以後直
 | 
						||
                                           接使用 Load_Pcx() 即可將舊圖呼叫出來。
 | 
						||
              LPCTSTR  data;             ●文字內容。
 | 
						||
              int      mem_mode;         ●記憶體模式, 1 => RAM
 | 
						||
                                                        2 => Flash Memory
 | 
						||
        
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Prn_Text_TrueType(0,0,40,"華康勘亭流",1,400,0,0,0,"AA","動態函數庫測試",1);
 | 
						||
			  A_Prn_Text_TrueType_W(0,0,40,50,"華康勘亭流",1,400,0,0,0,"AA","動態函數庫測試",1);
 | 
						||
 | 
						||
     說明:  這個 A_Prn_Text_TrueType 函數可以印出一行 True Type Font 文字,
 | 
						||
              但須先安裝 Window's Driver for Dr.200 or Dr.300,濃淡從 driver 設定,
 | 
						||
              印表機抓取為預設印表機,假若default printer 不是 Dr.200 或 Dr.300 ,
 | 
						||
              程式自動搜尋 Windows 內,是否有裝 Dr.200 或 Dr.300,在依序使用。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Backfeed()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  標籤回收停止位置。
 | 
						||
 | 
						||
      語法:  int A_Set_Backfeed(int back);
 | 
						||
 | 
						||
      參數:  int    back;               ●停止位置,範圍:220~999。
 | 
						||
                                           印表機內定220,小於220即無作用。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Backfeed(220);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Backfeed 函數可以使列印完後,吐一小段標籤紙,好讓使用者
 | 
						||
              觀察印出成果及容易撕裂標籤。然後,它會在印下一張時,退回到適當點
 | 
						||
              ,再印下一張,當一次印數張時,只有在第一張才會往後回縮。
 | 
						||
 | 
						||
	*******************************************************************************
 | 
						||
    A_Set_BMPSave()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  儲存影像圖檔。
 | 
						||
 | 
						||
      語法:  int A_Set_BMPSave(int nSave, char *pstrBMPFName);
 | 
						||
 | 
						||
      參數:  int    nSave;               # 1 -> 儲存圖檔
 | 
						||
											0 -> 不儲存圖檔
 | 
						||
 | 
						||
              char   *pstrBMPFName;		  # 儲存圖檔的名稱
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_BMPSave(1, "C:\TempBMP.bmp");
 | 
						||
 | 
						||
     說明:  這個 A_Set_BMPSave 函數,可以決定是否儲存影像圖檔。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Cutting()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定指定印出幾張後切刀切一次。
 | 
						||
 | 
						||
      語法:  int A_Set_Cutting(int cutting);
 | 
						||
 | 
						||
      參數:  int    cutting;            ●指定印出幾張後切刀切一次,
 | 
						||
                                           範圍:0~9999。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Cutting(12);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Cutting 函數只有當切刀載入時,才會動作。指定切刀在印出幾
 | 
						||
              張後切一次印出媒體。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Darkness()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定熱感頭列印熱度。
 | 
						||
 | 
						||
      語法:  int A_Set_Darkness(int heat);
 | 
						||
 | 
						||
      參數:  int    heat;               ●設定熱感頭列印熱度,範圍:0~20。
 | 
						||
                                           預設值:10
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Darkness(12);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Darkness 函數控制影像濃淡,想得到更好的印出品質,你應該
 | 
						||
              考慮一些因素,像 paper media、ribbon types(wax,semi-resin 和
 | 
						||
              resin)和image pattern itself。
 | 
						||
 | 
						||
	*******************************************************************************
 | 
						||
    A_Set_DebugDialog()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定除錯環境。
 | 
						||
 | 
						||
      語法:  int A_Set_DebugDialog(int nEnable);
 | 
						||
 | 
						||
      參數:  int    nEnable;          # 1 -> 除錯環境致能
 | 
						||
                                         0 -> 除錯環境關閉
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_DebugDialog(1);
 | 
						||
 | 
						||
     說明:  這個 A_Set_DebugDialog 函數,設定除錯環境,除了會回傳錯誤碼,也會秀
 | 
						||
			  出警示訊息對話框外。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Feed()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定標籤紙送出的速度。
 | 
						||
 | 
						||
      語法:  int A_Set_Feed(char rate);
 | 
						||
 | 
						||
      參數:  char   rate;               ●定標籤紙送出的速度,如下表:(A~K)
 | 
						||
                     ╒══╤════╤══╤════╕╒═════╤════╕
 | 
						||
                     │rate│ 速  度 │rate│ 速  度 ││印表機型號│速度範圍│
 | 
						||
                     ╞══╪════╪══╪════╡╞═════╪════╡
 | 
						||
                     │ A  │1.0 ips │ G  │4.0 ips ││OS-214/204│  A~E  │
 | 
						||
                     ├──┼────┼──┼────┤├─────┼────┤
 | 
						||
                     │ B  │1.5 ips │ H  │4.5 ips ││  OS-314  │  A~C  │
 | 
						||
                     ├──┼────┼──┼────┤├─────┼────┤
 | 
						||
                     │ C  │2.0 ips │ I  │5.0 ips ││  X-2000  │  A~I  │
 | 
						||
                     ├──┼────┼──┼────┤├─────┼────┤
 | 
						||
                     │ D  │2.5 ips │ J  │5.5 ips ││  X-3000  │  A~K  │
 | 
						||
                     ├──┼────┼──┼────┤└─────┴────┘
 | 
						||
                     │ E  │3.0 ips │ K  │6.0 ips │
 | 
						||
                     ├──┼────┼──┼────┤
 | 
						||
                     │ F  │3.5 ips │    │        │
 | 
						||
                     └──┴────┴──┴────┘
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Feed('E');
 | 
						||
 | 
						||
     說明:  這個 A_Set_Feed 函數設定標籤紙送出的速度。每次當你按下 FEED 按鍵或
 | 
						||
              送此函數時,印表機馬達將會依此設定值的速度運轉。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Form()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  儲存並列印 FORM (表格)。
 | 
						||
 | 
						||
      語法:  int A_Set_Form(LPCTSTR formfile,LPCTSTR form_name,int mem_mode);
 | 
						||
 | 
						||
      參數:  LPCTSTR   formfile;        ●表格檔案名稱,可含路徑。
 | 
						||
                                           表格檔的來源,使用 Drive Disk 內
 | 
						||
                                           dos\ppla\demo.bat 來設定取得。
 | 
						||
              LPCTSTR   form_name;       ●表格名稱,用來存在印表機內,Form 的標示
 | 
						||
                                           名稱,當 Print_Form() 所輸入的表格名稱。
 | 
						||
              int       mem_mode;        ●記憶體模式, 1 => RAM
 | 
						||
                                                        2 => Flash Memory
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Form("demo.prn","demo",1);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Form 函數儲存並列印 FORM (表格)。在使用這個函數時,須先
 | 
						||
              在 A_Print_Form函數之前。使用此函數時,就必須執行 Print_Form()。
 | 
						||
    
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Margin()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定開始列印位置和左邊空白空間。
 | 
						||
 | 
						||
      語法:  int A_Set_Margin(int position,int margin);
 | 
						||
 | 
						||
      參數:  int    position;           ●設定開始位置,將與 220 相加。
 | 
						||
              int    margin;             ●設定左邊空白空間,範圍:0~9999。
 | 
						||
                                           ※ 100 = 一英吋。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Margin(100,100);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Margin 函數設定開始列印位置和左邊空白空間。而 position
 | 
						||
              參數,在印表機預設值是 220,當輸入數值時函數將自動與 220 相加為結
 | 
						||
              果,送入印表機。如果你使用此函數後,整個版面圖文會水平位移或左右
 | 
						||
              移動印出。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Prncomport()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定印表機序列埠。
 | 
						||
 | 
						||
      語法:  int A_Set_Prncomport(int baud,int parity,int data,int stop);
 | 
						||
 | 
						||
      參數:  int    baud;               ●鮑爾率,如下表:
 | 
						||
                                            0 -> 9600, 1 -> 2400
 | 
						||
                                            2 -> 2400, 3 -> 19200
 | 
						||
                                            4 -> 4800, 5 -> 38400
 | 
						||
                                            6 -> 2400, 7 -> 9600
 | 
						||
              int    parity;             ●Parity,如下表:
 | 
						||
                                            0 -> none parity
 | 
						||
                                            1 -> even parity
 | 
						||
                                            2 -> odd  parity
 | 
						||
              int    data;               ●Data bit number:
 | 
						||
                                            7 -> 7-bit data
 | 
						||
                                            8 -> 8-bit data
 | 
						||
              int    stop;               ●Stop bit number:
 | 
						||
                                            1 -> 1 stop bit
 | 
						||
                                            2 -> 2 stop bits
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Prncomport(0, 0, 8, 1);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Prncomport 函數會設定印表機序列埠設定值,來改變印表機相
 | 
						||
              同於 PC 序列埠設定值,如果不同則無法與 PC 連接。此函數必須在函數
 | 
						||
              Print_Out 之前執行。必須單獨執行。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Prncomport_PC()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定 PC 序列埠。
 | 
						||
 | 
						||
      語法:  int A_Set_Prncomport_PC(int nBaudRate, int nByteSize, int nParity,
 | 
						||
								int nStopBits, int nDsr, int nCts, int nXonXoff);
 | 
						||
 | 
						||
      參數:  int    nBaudRate;          ●鮑爾率,如下表:
 | 
						||
                                            1 -> 110     9 -> 19200 
 | 
						||
                                            2 -> 300    10 -> 38400 
 | 
						||
                                            3 -> 600    11 -> 56000 
 | 
						||
                                            4 -> 1200   12 -> 57600 
 | 
						||
                                            5 -> 2400   13 -> 115200 
 | 
						||
                                            6 -> 4800   14 -> 128000 
 | 
						||
                                            7 -> 9600   15 -> 256000 
 | 
						||
                                            8 -> 14400   0 -> 9600
 | 
						||
 | 
						||
              int    nByteSize;          ●Data bit number:
 | 
						||
                                            0 -> 8-bit data
 | 
						||
                                            7 -> 7-bit data
 | 
						||
                                            8 -> 8-bit data
 | 
						||
 | 
						||
              int    nParity;            ●Parity,如下表:
 | 
						||
                                            0 -> none parity
 | 
						||
                                            1 -> even parity
 | 
						||
                                            2 -> odd  parity
 | 
						||
              int    nStopBits;          ●Stop bit number:
 | 
						||
                                            0 -> 1 stop bit
 | 
						||
                                            1 -> 1 stop bit
 | 
						||
                                            2 -> 2 stop bits
 | 
						||
              int    nDsr;               ●Setup hardware flow control
 | 
						||
                                            1 -> DTR CONTROL HANDSHAKE;
 | 
						||
                                            0 -> DTR CONTROL ENABLE;
 | 
						||
 | 
						||
              int    nCts;               ●Setup hardware flow control
 | 
						||
                                            1 -> RTS CONTROL HANDSHAKE;
 | 
						||
                                            0 -> RTS CONTROL ENABLE;
 | 
						||
 | 
						||
              int    nXonXoff;           ●Setup software flow control
 | 
						||
                                            0 -> Enable;
 | 
						||
                                            1 -> Disable;
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Prncomport_PC(0, 0, 0, 0, 1, 1, 1);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Prncomport_PC 函數會設定 PC 序列埠設定值,來改變 PC 相同
 | 
						||
              於印表機序列埠設定值,如果不同則無法與印表機連接。此函數必須在函數
 | 
						||
              A_Print_Out 之前執行。
 | 
						||
              
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Sensor_Mode()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定 SENSOR 模式或連續紙模式。
 | 
						||
 | 
						||
      語法:  int A_Set_Sensor_Mode(char type,int continuous);
 | 
						||
 | 
						||
      參數:  char   type;               ●模式選擇,如下表:
 | 
						||
              int    continuous;         ●單張標籤長度。當為連續紙模式時,才須
 | 
						||
                                           設定,如下表:
 | 
						||
                               ╒══╤═════╤═════════════╕
 | 
						||
                               │type│continuous│SENSOR 模式               │
 | 
						||
                               ╞══╪═════╪═════════════╡
 | 
						||
                               │ e  │0         │edge sensor (預設值)      │
 | 
						||
                               ├──┼─────┼─────────────┤
 | 
						||
                               │ r  │0         │reflective sensor for gap │
 | 
						||
                               ├──┼─────┼─────────────┤
 | 
						||
                               │ c  │0~9999   │連續紙模式                │
 | 
						||
                               └──┴─────┴─────────────┘
 | 
						||
                                 ※100 = 一英吋。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Sensor_Mode('c',300);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Sensor_Mode 函數設定為 "e" 時,則 sensor 以穿透標籤媒體
 | 
						||
              方式,來抓取 gap。設定為 "r" 時,則 sensor 以反射標籤媒體方式,來
 | 
						||
              抓取 gap。而當是連續模式時,印表機會忽略 gap 及 mark,使 paper
 | 
						||
              sensor 不動作。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Speed()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定列印速度。
 | 
						||
 | 
						||
      語法:  int A_Set_Speed(char speed);
 | 
						||
 | 
						||
      參數:  char   speed;              ●設定列印速度,如下表:(A~K)
 | 
						||
                     ╒══╤════╤══╤════╕╒═════╤════╕
 | 
						||
                     │rate│ 速  度 │rate│ 速  度 ││印表機型號│速度範圍│
 | 
						||
                     ╞══╪════╪══╪════╡╞═════╪════╡
 | 
						||
                     │ A  │1.0 ips │ G  │4.0 ips ││OS-214/204│  A~E  │
 | 
						||
                     ├──┼────┼──┼────┤├─────┼────┤
 | 
						||
                     │ B  │1.5 ips │ H  │4.5 ips ││  OS-314  │  A~C  │
 | 
						||
                     ├──┼────┼──┼────┤├─────┼────┤
 | 
						||
                     │ C  │2.0 ips │ I  │5.0 ips ││  X-2000  │  A~I  │
 | 
						||
                     ├──┼────┼──┼────┤├─────┼────┤
 | 
						||
                     │ D  │2.5 ips │ J  │5.5 ips ││  X-3000  │  A~L  │
 | 
						||
                     ├──┼────┼──┼────┤└─────┴────┘
 | 
						||
                     │ E  │3.0 ips │ K  │6.0 ips │
 | 
						||
                     ├──┼────┼──┼────┤
 | 
						||
                     │ F  │3.5 ips │  L │ 7.0 ips │
 | 
						||
                     └──┴────┴──┴────┘
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Speed('E');
 | 
						||
 | 
						||
     說明:  這個 A_Set_Speed 函數為控制列印速度。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Syssetting()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定轉印模式、啟動 Cutter 或 Peel、設定標籤最長的長度、改變 slash
 | 
						||
              zero 為 normal zero、設定每印一張暫停一次。
 | 
						||
 | 
						||
      語法:  int A_Set_Syssetting(int transfer,int cut_peel,int length,int zero,
 | 
						||
                                   int pause);
 | 
						||
 | 
						||
      參數:  int    transfer;           ●設定轉印模式,如下表:
 | 
						||
                                           ╒════╤════╕
 | 
						||
                                           │transfer│轉印模式│
 | 
						||
                                           ╞════╪════╡
 | 
						||
                                           │   0    │不動作  │
 | 
						||
                                           ├────┼────┤
 | 
						||
                                           │   1    │熱感    │
 | 
						||
                                           ├────┼────┤
 | 
						||
                                           │   2    │熱轉    │
 | 
						||
                                           └────┴────┘
 | 
						||
              int    cut_peel;           ●啟動 Cutter 或 Peel,如下表:
 | 
						||
                                           ╒════╤══════════╕
 | 
						||
                                           │cut_peel│週邊模式            │
 | 
						||
                                           ╞════╪══════════╡
 | 
						||
                                           │   9    │不動作              │
 | 
						||
                                           ├────┼──────────┤
 | 
						||
                                           │   0    │沒有 Cutter 和 Peel │
 | 
						||
                                           ├────┼──────────┤
 | 
						||
                                           │   1    │啟動 Cutter         │
 | 
						||
                                           ├────┼──────────┤
 | 
						||
                                           │   4    │啟動 Peel           │
 | 
						||
                                           └────┴──────────┘
 | 
						||
              int    length;             ●設定標籤最長的長度,範圍:1~1200
 | 
						||
                                           。當你設為 0 時,則不動作。
 | 
						||
                                                               ※100 = 一英吋。
 | 
						||
              int    zero;               ●改變 slash zero 為 normal zero。
 | 
						||
                                           '0'則不動作。'1'改變為 normal zero。
 | 
						||
              int    pause;              ●設定每印一張暫停一次,如下表:
 | 
						||
                                           ╒═══╤════╕
 | 
						||
                                           │pause │  功能  │
 | 
						||
                                           ╞═══╪════╡
 | 
						||
                                           │  0   │不動作  │
 | 
						||
                                           ├───┼────┤
 | 
						||
                                           │  1   │設定暫停│
 | 
						||
                                           ├───┼────┤
 | 
						||
                                           │  2   │取消暫停│
 | 
						||
                                           └───┴────┘
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
                          
 | 
						||
      範例:  A_Set_Syssetting(2,4,1200,1,2);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Syssetting 函數為重要配置。
 | 
						||
 | 
						||
    *******************************************************************************
 | 
						||
    A_Set_Unit()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定度量單位為英吋或公尺。
 | 
						||
 | 
						||
      語法:  int A_Set_Unit(char unit);
 | 
						||
 | 
						||
      參數:  char   unit;               ●度量單位,如下表:╒══╤══╕
 | 
						||
                                                             │unit│度量│
 | 
						||
                                                             ╞══╪══╡
 | 
						||
                                                             │ m  │公尺│
 | 
						||
                                                             ├──┼──┤
 | 
						||
                                                             │ n  │英吋│
 | 
						||
                                                             └──┴──┘
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Unit('n');
 | 
						||
 | 
						||
     說明:  這個 A_Set_Unit 函數設定度量單位為英吋或公尺。
 | 
						||
 | 
						||
    ***************************************************************************
 | 
						||
    A_Set_Gap()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定 Gap 的寬度。
 | 
						||
 | 
						||
      語法:  int A_Set_Gap(int gap);
 | 
						||
 | 
						||
      參數:  int   gap;               ●範圍: 0 ~ 36 mm。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Gap(0);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Unit 函數可設定 Gap 的寬度。
 | 
						||
 | 
						||
    ***************************************************************************
 | 
						||
    A_Set_Logic()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定反白功能。
 | 
						||
 | 
						||
      語法:  int A_Set_Logic(int logic);
 | 
						||
 | 
						||
      參數:  int   logic;		0:印表機預設值。
 | 
						||
					1:重疊部份反白
 | 
						||
					2:重疊部份不反白
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_Logic(1);
 | 
						||
 | 
						||
     說明:  這個 A_Set_Logic 函數可設定反白功能。
 | 
						||
 | 
						||
    ***************************************************************************
 | 
						||
    A_Set_ProcessDlg()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  開啟或關閉進度對話框。
 | 
						||
 | 
						||
      語法:  int A_Set_ProcessDlg(int nShow);
 | 
						||
 | 
						||
      參數:  int   nShow;		0:關閉進度對話框。
 | 
						||
					1:開啟進度對話框
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_ProcessDlg(1);
 | 
						||
 | 
						||
     說明:  這個 A_Set_ProcessDlg 函數可開關進度對話框。
 | 
						||
 | 
						||
    ***************************************************************************
 | 
						||
	A_Set_LabelVer()
 | 
						||
    ===============================================================================
 | 
						||
      功能:  設定紙張寬度。(For R400)
 | 
						||
 | 
						||
      語法:  int A_Set_LabelVer(int centiInch);
 | 
						||
 | 
						||
      參數:  int   centiInch;		紙張寬度。
 | 
						||
					單位 : 0.01 英吋。
 | 
						||
 | 
						||
    傳回值:  0    -> OK.
 | 
						||
              Reference AW-Error.txt file.
 | 
						||
 | 
						||
      範例:  A_Set_LabelVer(400);
 | 
						||
 | 
						||
     說明:  這個 A_Set_LabelVer 函數可設定 R400 紙張寬度。
 | 
						||
    ******************************************************************************* |