如何从VB应用程序向打印机提供换页 [英] How to provide Form Feed to printer from VB application

查看:86
本文介绍了如何从VB应用程序向打印机提供换页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在创建一个应用程序;打印作业结束后;我必须将应用程序中的换页纸引入打印机.

是否有任何命令可以执行相同的操作.

预先感谢,

Heera

Hi,

Am creating an application; after the end of the printing job; i have to introduce form feed from the application to the printer.

Is there any commands to do the same.

Thanks in advance,

Heera

推荐答案

在字符串末尾使用Environment.NewLine.


您必须打印"控制代码以打印机.

换页的ASCII代码为12,因此应该可以使用:

You have to "print" a control code to the printer.

The ASCII code for Form Feed is 12, so this should work:

Dim myFeed As String = Chr(12)

'Then send the myFeed string to the printer using the same technique you used to print you print job...


这篇关于如何从VB应用程序向打印机提供换页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆