将Prn文件中的文本设置为粗体 [英] Set bold to text in prn file
本文介绍了将Prn文件中的文本设置为粗体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的项目在带有vb的asp.net中.我正在创建要使用vb编码进行打印的prn文件.就像跟随
My project is in asp.net with vb. I am creating prn file for printing using vb coding. That''s like following
Dim Path As String
Path = "C:\KOTBill.prn"
FN = FreeFile()
FileOpen(FN, Path, OpenMode.Output)
PrintLine(FN)
Print(FN, TAB(10), "Order Change For this Billno.")
PrintLine(FN)
我正在使用Rawprinterhelper(如
)打印此prn文件
I am printing this prn file using Rawprinterhelper like
RawPrinterHelper.SendFileToPrinter1("printer", Path)
我想将文本的字体设置为粗体.它将在纸上打印为深色.怎么做?请帮助我....
I want to set the font of the text to bold. It will be print dark in paper. How to do it? please help me....
推荐答案
您可以很容易地使用 ^ ]甚至是 ^ ]
这种方法可以让您创建更多的丰富打印输出.
Instead of using prn, you could possibly quite easily use for example PrintDocument[^] or even Reporting Services[^]
This approach would let you to create more rich printouts.
这篇关于将Prn文件中的文本设置为粗体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文