问题描述
大家好,
我刚开始使用VB.Net进行打印.
我环顾四周,似乎发现了很多有关System.Drawing.Printing的信息.但是我不知道如何将字符串传递给它进行打印.就像这样简单:
dim Text as String =这是测试文本"
System.Drawing.Printing.(PrintText)我知道printtext不是函数" = Text
System.Drawing.Printing.Print()
我是不是在找错地方来做我想做的事情,System.Drawing.Printing似乎仅支持打印出已经存在的文件.
谢谢,
Caz
Hi Guys,
I am just starting out with printing in VB.Net.
I have had a look around and seem to find a lot of information around System.Drawing.Printing which I have played around with. But I can not figure out how to pass a string to that to print. Something as simple as:
dim Text as String = "This is test text"
System.Drawing.Printing.(PrintText) "I know printtext is not a function" = Text
System.Drawing.Printing.Print()
Am I looking in the wrong spot to do what I want to do, System.Drawing.Printing only seems to support printing out a file that already exists.
Thanks,
Caz
推荐答案
这篇关于VB.net中的字符串打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!