就是接收到一条信息就把它打印出来。并且是一行接着一行的打,中间不留空行。目前我只能做到打印一行就走纸,这样就有空行了。谢谢大家不吝赐教
解决方案 »
- 难道没办法吗?
- 求助:在vb菜单中Reference一个dll文件时出错:“Can't add a reference to the specified file.”
- 请教:工程组之间的各个工程怎样启动!
- 水晶报表:如何将总计打印在页码的最后一页上?????
- 能不能让vb ide 的代码编写窗口支持鼠标滚轮???
- USB访问读取问题
- 关于 outlook
- vb 用avicap32.dll 通过摄像头录象 怎么设置数据速率和总比特率
- 30分,在线等待,不过请说的详细一些,别总是提个建议,因为我不会。
- ***********关于"如何返回控件的方法产生的事件中的信息"的小问题********来者有分哦!!!!!!!
- 参数数组的问题
- 右击事件
http://community.csdn.net/Expert/topic/3181/3181353.xml?temp=.6869776楼主可否这样:
先统计一下每页纸的打印行数,在程序中统计,一旦满一页就使用Printer.EndDoc方法将结果输出呢?
如:
Printer.Height = 8 * 567
Printer.Width = 25.4 * 567
Printer.Orientation = 1
Printer.ScaleMode = vbMillimeters
Printer.FontSize = 11msg$ = DateValue(dIssueTime)
Printer.CurrentX = 16
Printer.CurrentY = 24
Printer.Print msgmsg = sUserQuantity
Printer.CurrentX = 36
Printer.CurrentY = 41
Printer.Print msgmsg = txt(5) & ChMoney(txt(5))
Printer.CurrentX = 165
Printer.CurrentY = 41
Printer.Print msgPrinter.EndDoc
对于一些特别的打印机,如票据、连续打印设备,一般只能直接通过API函数WritePrinter直接将打印数据送给打印机进行打印。具体的例子可以参考微软的文章:http://support.microsoft.com/default.aspx?scid=http://support.microsoft.com:80/support/kb/articles/Q175/0/83.asp&NoWebContent=1