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
201d7809
Commit
201d7809
authored
Oct 23, 2018
by
yunpeng.song
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
打印单行数据增加换行配置
parent
b206e195
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
LoadDll.cpp
+5
-4
LoadDll.h
+1
-1
fmposdll.cpp
+2
-2
No files found.
LoadDll.cpp
View file @
201d7809
...
...
@@ -2278,7 +2278,7 @@ void deletelog(int nDays)
}
}
bool
_PrintLine
(
char
data
[],
int
fontType
,
int
fontStyle
,
int
width
,
int
height
,
int
leftMargin
,
int
alignMode
)
bool
_PrintLine
(
char
data
[],
int
fontType
,
int
fontStyle
,
int
width
,
int
height
,
int
leftMargin
,
int
alignMode
,
int
freeLine
)
{
int
length
=
0
;
length
=
strlen
(
data
);
...
...
@@ -2306,7 +2306,10 @@ bool _PrintLine(char data[], int fontType,int fontStyle ,int width,int height,in
//strncpy_s(lineData,sizeof(lineData), data, length);
VC_POS_S_SetAlignMode
(
alignMode
);
VC_POS_S_TextOut
(
data
,
leftMargin
,
width
,
height
,
fontType
,
fontStyle
);
VC_POS_FeedLine
();
if
(
freeLine
==
1
)
{
VC_POS_FeedLine
();
}
return
true
;
}
...
...
@@ -2334,8 +2337,6 @@ bool _PrintBarCode(char data[],int type, int leftMargin,int fontType ,int width,
bool
_PrintQRCode
(
char
data
[],
int
type
,
int
leftMargin
,
int
width
)
//打二维码
{
int
len
=
strlen
(
data
);
// 计算字符数组str的长度
int
result
=
VC_POS_S_BarcodeQR
(
g_hComm
,
data
,
leftMargin
,
width
,
type
,
0
,
len
,
0
);
if
(
result
==
POS_SUCCESS
)
{
...
...
LoadDll.h
View file @
201d7809
...
...
@@ -388,7 +388,7 @@ void CheckStatus();
void
_InPrintData
(
char
data
[]);
void
GetProfilePath
(
char
*
CONFIGFILE
);
void
_GetPrintIni
(
char
inidata
[]);
bool
_PrintLine
(
char
data
[],
int
fontType
,
int
fontStyle
,
int
width
,
int
height
,
int
leftMargin
,
int
alignMode
);
//打印行
bool
_PrintLine
(
char
data
[],
int
fontType
,
int
fontStyle
,
int
width
,
int
height
,
int
leftMargin
,
int
alignMode
,
int
freeLine
);
//打印行
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
);
//打印行
...
...
fmposdll.cpp
View file @
201d7809
...
...
@@ -162,9 +162,9 @@ extern "C" void __declspec(dllexport)Initconfigini(char data[])
_GetPrintIni
(
data
);
}
extern
"C"
bool
__declspec
(
dllexport
)
PrintDataLine
(
char
data
[],
int
fontType
,
int
fontStyle
,
int
width
,
int
height
,
int
leftMargin
,
int
alignMode
)
extern
"C"
bool
__declspec
(
dllexport
)
PrintDataLine
(
char
data
[],
int
fontType
,
int
fontStyle
,
int
width
,
int
height
,
int
leftMargin
,
int
alignMode
,
int
freeLine
)
{
return
_PrintLine
(
data
,
fontType
,
fontStyle
,
width
,
height
,
leftMargin
,
alignMode
);
return
_PrintLine
(
data
,
fontType
,
fontStyle
,
width
,
height
,
leftMargin
,
alignMode
,
freeLine
);
}
...
...
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