使用Dos或Dll提高点阵打印机的打印速度 [英] Increase printing speed on Dot matrix printer Using Dos or Dll
本文介绍了使用Dos或Dll提高点阵打印机的打印速度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Private Sub btnPrint_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnPrint.Click
Dim prndoc As PrintDocument = New PrintDocument
prndoc.DocumentName = Text
AddHandler prndoc.PrintPage, AddressOf Me.Paper_PrintBill
prndoc.Print()
prndoc.Dispose()
End Sub
Public Sub Paper_PrintBill(ByVal obj As Object, ByVal e As PrintPageEventArgs)
Dim printFont4 As Font = New Font("Verdana", 10)
e.Graphics.DrawString("B.No: " & txtreceiptno.Text, printFont4, Brushes.Black, 10, 20)
e.Graphics.DrawString(DateTime.Now.ToString("dd/MM/yyyy"), printFont4, Brushes.Black, 10, 50)
End Sub
我的代码与此类似。当我打印发票时输出很慢可以任何人帮助我
My code is similar to this. when i am printing an invoice the output was very slow Can Any one help Me Please
推荐答案
检查你的决议;你可以用更少的东西(例如300 dpi对比600+)。
并且......你应该异步打印。
Check your "resolution"; you can probably get by with less (e.g. 300 dpi versus 600+).
And ... you should be printing "asynchronously".
这篇关于使用Dos或Dll提高点阵打印机的打印速度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文