China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 19:48
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Question about QB View 1,245 Replies 2
Original Poster Posted 2002-12-27 00:00 ·  中国 广东 汕尾 电信
初级用户
Credits 109
Posts 3
Joined 2002-12-27 00:00
23-year member
UID 613
Gender Male
Status Offline
10 LPRINT CHR$(28); CHR$(14);
20 LPRINT "123456"
END
Why can the LQ1600K print double-width characters, but the OKI5330SC can't?
Please advise!
Floor 2 Posted 2002-12-30 00:00 ·  中国 浙江 温州 联通
中级用户
Credits 210
Posts 39
Joined 2002-12-30 00:00
23-year member
UID 638
Gender Male
Status Offline
The OKI commands are not the same as ESC/P commands. Try:
lprint chr$(28)+chr$(112)+"123456"
Floor 3 Posted 2003-01-06 00:00 ·  中国 广东 汕尾 电信
初级用户
Credits 109
Posts 3
Joined 2002-12-27 00:00
23-year member
UID 613
Gender Male
Status Offline
Many thanks for the advice, but this way only full-width characters can be printed double-width; half-width characters still can't be printed double-width. Is there any way for half-width characters to also print double-width, and also set line spacing and character spacing?
For example, ESC/P
10 LPRINT CHR$(28); CHR$(14);
20 LPRINT CHR$(27); CHR$(65); CHR(0);
30 LPRINT "123456" printed this way, they are double-width with character spacing 0 dots
40 LPRINT CHR$(28); CHR(20);
50 LPRINT CHR$(27); CHR$(65); CHR(17);
60 LPRINT "123456" printed this way, they are not double-width, with line spacing 17 dots
Forum Jump: