Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
posprintdll
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yunpeng.song
posprintdll
Commits
b32f675a
Commit
b32f675a
authored
Apr 12, 2019
by
李定达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.导出切纸接口
parent
fe830050
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
1 deletions
+14
-1
LoadDll.cpp
+6
-0
LoadDll.h
+1
-0
fmposdll.cpp
+5
-0
fmsdll.def
+2
-1
No files found.
LoadDll.cpp
View file @
b32f675a
...
...
@@ -2657,6 +2657,12 @@ bool _PrintBarCode(char data[],int type, int leftMargin,int fontType ,int width,
return
false
;
}
}
void
_PrintCut
()
{
VC_POS_CutPaper
(
POS_CUT_MODE_PARTIAL
,
50
);
}
bool
_PrintQRCode
(
char
data
[],
int
type
,
int
leftMargin
,
int
width
)
//打二维码
{
int
len
=
strlen
(
data
);
// 计算字符数组str的长度
...
...
LoadDll.h
View file @
b32f675a
...
...
@@ -400,6 +400,7 @@ void _GetPrintIni(char inidata[]);
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
_PrintQRCode
(
char
data
[],
int
type
,
int
leftMargin
,
int
width
);
//打印行
void
_PrintCut
();
void
_FreeLine
();
void
_InPrint2dcode
(
char
data
[]);
...
...
fmposdll.cpp
View file @
b32f675a
...
...
@@ -178,3 +178,7 @@ extern "C" bool __declspec(dllexport)PrintQRCode(char data[], int type, int lef
return
_PrintQRCode
(
data
,
type
,
leftMargin
,
width
);
//打印行
}
extern
"C"
void
__declspec
(
dllexport
)
PrintCut
()
{
_PrintCut
();
}
\ No newline at end of file
fmsdll.def
View file @
b32f675a
...
...
@@ -3,7 +3,7 @@ EXPORTS
LoadAddress @1
InItConfig @2
PrintData @3
Print2dData @4
Print2dData @4
Unloaddll @5
Initconfigini @6
Add @7
...
...
@@ -14,3 +14,4 @@ EXPORTS
TSCWinPrintln @12
TSCWinPrintPage @13
TSCInit @14
PrintCut @15
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment