VB向微型打印机输出ASCII不显示问题
OPEN "lpt1: " FOR RANDOM AS #1
LPRINT CHR$(27);CHR$(49);CHR$(11);
PRINT #1, CHR$(143); "23.90 ";
close #1
END
以上语句小弟在QBASIC中正常可以在微打上输出¥23.90的打印显示,但是小弟完全复制到VB6的环境中,提示我我RANDOM不存在什么的错误,于是小弟就改为
OPEN "lpt1: " FOR output AS #1
LPRINT CHR$(27);CHR$(49);CHR$(11);
PRINT #1, CHR$(143); "59.90 ";
close #1
END
于是打印输出却无法显示货币符号了.小弟是纯棒槌,希望各位给指条明路了.
[解决办法]
printer.print CHR$(143)& "23.90 ";