资源简介
此API读取程序为博主从佳博官方的VB程序中转换而来,经测试可用,需要将程序设置为X86处理器才能在C#语言下进行开发
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace WindowsFormsApplication1
{
public class POSDLLFunctions
{
//静态变量声明
//The return value
public const int POS_SUCCESS = 1001;
public const int POS_FAIL = 1002;
public const int POS_ERROR_INVALID_HANDLE = 1101;
public const int POS_ERROR_INVALID_PARAMETER = 1102;
public const int POS_ERROR_NOT_BITMAP = 1103;
public const int POS_ERROR_NOT_MONO_BITMAP = 1104;
public const int POS_ERROR_BEYONG_AREA = 1105;
public const int POS_ERROR_INVALID_PATH = 1106;
//The number of stop bits options of serial port
public const int POS_COM_ONESTOPBIT = 0;
//Public Const POS_COM_ONE5STOPBITS = 1
public const int POS_COM_TWOSTOPBITS = 2;
//Parity options of serial port
public const int POS_COM_NOPARITY = 0;
public const int POS_COM_ODDPARITY = 1;
public const int POS_COM_EVENPARITY = 2;
public const int POS_COM_MARKPARITY = 3;
public const int POS_COM_SPACEPARITY = 4;
//Flow control options of serial port
public const int POS_COM_DTR_DSR = 0;
public const int POS_COM_RTS_CTS = 1;
public const int POS_COM_XON_XOFF = 2;
public const int POS_COM_NO_HANDSHAKE = 3;
public const int POS_OPEN_PARALLEL_PORT = 18;
public const int POS_OPEN_BYUSB_PORT = 19;
public const int POS_OPEN_PRINTNAME = 20;
public const int POS_OPEN_NETPORT = 21;
//Mode options of the way of paper leaving away from printer
public const int POS_PAPER_OUT_MODE_CUT = 0;
public const int POS_PAPER_OUT_MODE_PEEL = 1;
public const int POS_PAPER_OUT_MODE_TEAR = 2;
public const int POS_PAPER_OUT_MODE_OTHER = 3;
//Print mode options
public const int POS_PRINT_MODE_STANDARD = 0;
public const int POS_PRINT_MODE_PAGE = 1;
public const int POS_PRINT_MODE_BLACK_MARK_LABEL = 2;
public const int POS_PRINT_MODE_WHITE_MARK_LABEL = 3;
//Font type options
public const int POS_FONT_TYPE_STANDARD = 0;
public const int POS_FONT_TYPE_COMPRESSED = 1;
public const int POS_FONT_TYPE_UDC = 2;
public const int POS_FONT_TYPE_CHINESE = 3;
//Font style options
public const int POS_FONT_style_NORMAL = 0x00;
public const int POS_FONT_style_BOLD = 0x08;
public const int POS_FONT_style_THIN_UNDERLINE = 0x80;
public const int POS_FONT_style_THICK_UNDERLINE = 0x100;
public const int POS_FONT_style_UPSIDEDOWN = 0x200;
public const int POS_FONT_style_REVERSE = 0x400;
public const int POS_FONT_style_SMOOTH = 0x800;
public const int POS_FONT_style_CLOCKWISE_90 = 0x1000;
//Specify the area di
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 81920 2007-03-15 11:09 佳博80打印机.net平台下的开发API\POSDLL.dll
文件 798 2006-11-01 11:29 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\Kitty.bmp
文件 798 2002-01-20 23:24 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\Look.bmp
文件 44487 2017-10-17 22:08 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\MainForm.frm
文件 341 2017-10-17 22:08 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\MainForm.frx
文件 343 2006-12-19 17:14 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\MSSCCPRJ.SCC
文件 81920 2007-03-15 11:09 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\POSDLL.dll
文件 61440 2007-03-02 10:16 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\PosdllDemo.exe
文件 1089 2017-10-17 22:08 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\PosdllDemo.vbp
文件 87 2017-10-17 22:08 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\PosdllDemo.vbw
文件 20684 2017-10-17 16:13 佳博80打印机.net平台下的开发API\POSDLLDemo_VB\PosdllFuncs.bas
文件 12629 2017-10-17 15:30 佳博80打印机.net平台下的开发API\POSDLLFunctions.cs
文件 66239 2007-03-31 08:40 佳博80打印机.net平台下的开发API\POSDLL_API.chm
文件 73 2017-10-22 23:27 佳博80打印机.net平台下的开发API\说明.txt
目录 0 2017-10-22 23:29 佳博80打印机.net平台下的开发API\POSDLLDemo_VB
目录 0 2017-10-22 23:29 佳博80打印机.net平台下的开发API
----------- --------- ---------- ----- ----
372848 16
评论
共有 条评论