P
pc_wjh
Unregistered / Unconfirmed
GUEST, unregistred user!
本人有段pos 实达300的打印机的切纸程序,不过是用vc写的,有哪位可以把它转换为vb 代码
谢谢inline void TDevCSPC::_PrnCutPaper()
{
_PrnPortOuts((unsigned char*)"/x1b", 1);切纸指令先用/X1b初始化,
_PrnPortOuts((unsigned char*)"d0/x1e", 3);
再用d0/x1e控制切纸刀。
}
vb 的打印方法:
Open "lpt1" For Output As #1
Print #1, ?
Print #1, ?
Close #1
谢谢inline void TDevCSPC::_PrnCutPaper()
{
_PrnPortOuts((unsigned char*)"/x1b", 1);切纸指令先用/X1b初始化,
_PrnPortOuts((unsigned char*)"d0/x1e", 3);
再用d0/x1e控制切纸刀。
}
vb 的打印方法:
Open "lpt1" For Output As #1
Print #1, ?
Print #1, ?
Close #1