本文介绍了印刷质量差的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我在使用我的应用程序时遇到打印质量问题.它可以打印,但是打印的文本根本不清楚.甚至很难阅读它们.打印机配置中的测试(打印)页面打印良好.我正在使用Epson TM-220D.
这是代码的一部分:
Hello guys,
I''m having problems with printing quality using my application. It can print but the texts printed are not clear at all. It''s even difficult to read them. The test(print) page in the printer configuration prints well. I''m using an Epson TM-220D.
Here is a part of code:
Private sub Pdoc_PrintPage(byval sender as system.object, byval system.drawing.printing.printpageenvenargs)
' Retrieve the printer configuration
Dim HDC as intptr=e.graphics.gethdc
Dim stringFormat, strcentr as new StringFormata()
StringFormat.Alignement=StringAlignement.Far
Strcentr.Alignement=StringAlignement.Center
Dpix=GetDeviceCaps(HDC,88) 'horizontal
DpiY=GetDeviceCaps(HDC,90) ' vertical
e.graphics.ReleaseHdc(HDC)
e.Graphics.DrawString("Invoice N", new Font("Arial Narrow",FontStyle.Regular), Brushing.black,9,150)
End sub
该代码通常比此代码长,但我减少了代码,因为其余代码仅使用e.graphics.Drawing
添加文本.
感谢您的帮助
The code is normally longer than this one but I reduced it because the rest is only adding text with the e.graphics.Drawing
Thank you for your help
推荐答案
e.Graphics.TextRenderingHint = Drawing.Text.TextRenderingHint.AntiAlias
e.Graphics.TextContrast = 5
这篇关于印刷质量差的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!