Commit b32f675a by 李定达

1.导出切纸接口

parent fe830050
...@@ -2657,6 +2657,12 @@ bool _PrintBarCode(char data[],int type, int leftMargin,int fontType ,int width, ...@@ -2657,6 +2657,12 @@ bool _PrintBarCode(char data[],int type, int leftMargin,int fontType ,int width,
return false; return false;
} }
} }
void _PrintCut()
{
VC_POS_CutPaper(POS_CUT_MODE_PARTIAL,50);
}
bool _PrintQRCode(char data[], int type, int leftMargin,int width)//打二维码 bool _PrintQRCode(char data[], int type, int leftMargin,int width)//打二维码
{ {
int len= strlen(data); // 计算字符数组str的长度 int len= strlen(data); // 计算字符数组str的长度
......
...@@ -400,6 +400,7 @@ void _GetPrintIni(char inidata[]); ...@@ -400,6 +400,7 @@ void _GetPrintIni(char inidata[]);
bool _PrintLine(char data[], int fontType,int fontStyle ,int width,int height);//打印行 bool _PrintLine(char data[], int fontType,int fontStyle ,int width,int height);//打印行
bool _PrintBarCode(char data[],int type, int leftMargin,int fontType ,int width,int height,int position);//打印条码 bool _PrintBarCode(char data[],int type, int leftMargin,int fontType ,int width,int height,int position);//打印条码
bool _PrintQRCode(char data[], int type, int leftMargin,int width);//打印行 bool _PrintQRCode(char data[], int type, int leftMargin,int width);//打印行
void _PrintCut();
void _FreeLine(); void _FreeLine();
void _InPrint2dcode(char data[]); void _InPrint2dcode(char data[]);
......
...@@ -178,3 +178,7 @@ extern "C" bool __declspec(dllexport)PrintQRCode(char data[], int type, int lef ...@@ -178,3 +178,7 @@ extern "C" bool __declspec(dllexport)PrintQRCode(char data[], int type, int lef
return _PrintQRCode( data, type, leftMargin,width);//打印行 return _PrintQRCode( data, type, leftMargin,width);//打印行
} }
extern "C" void __declspec(dllexport)PrintCut()
{
_PrintCut();
}
\ No newline at end of file
...@@ -14,3 +14,4 @@ EXPORTS ...@@ -14,3 +14,4 @@ EXPORTS
TSCWinPrintln @12 TSCWinPrintln @12
TSCWinPrintPage @13 TSCWinPrintPage @13
TSCInit @14 TSCInit @14
PrintCut @15
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment