在.NET中打印 [英] Printing in .NET

查看:50
本文介绍了在.NET中打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VB6中打印文本只需Printing.Print即可完成。在.NET中有没有替换这个?/ $
Drawing.Print不会工作因为它将文本转换成图像然后打印。所以

当我们使用Adobe蒸馏器作为打印驱动程序时,结果PDF doen'仍然是

可再搜索...

printing text in VB6 can be done just by "Printing.Print". is there any
replacement for this in .NET?
Drawing.Print won''t work coz it converts text into image and then prints. so
when we use Adobe distiller as print driver, resulting PDF doen''s remain
searchable anymore...

推荐答案




您必须使用打印文档类。
http://msdn.microsoft.com/library/de .. .classtopic.asp



------------------

Sumant < SK ******* @ megawareinc.com>在消息中写道

news:%2 ****************** @ TK2MSFTNGP10.phx.gbl ...
Hi,

You have to use the print document class.
http://msdn.microsoft.com/library/de...classtopic.asp
Ken
------------------
"Sumant" <sk*******@megawareinc.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
VB6中的打印文本只能通过Printing.Print来完成。在.NET中有没有替换它?
Drawing.Print不会工作因为它将文本转换成图像然后打印。
所以
当我们使用Adobe蒸馏器时作为打印驱动程序,导致PDF doen'仍然可以搜索...
printing text in VB6 can be done just by "Printing.Print". is there any
replacement for this in .NET?
Drawing.Print won''t work coz it converts text into image and then prints.
so
when we use Adobe distiller as print driver, resulting PDF doen''s remain
searchable anymore...



thnx的回复...

i已经尝试了这个但是没有用。它会在打印前将文本转换为

图像

。使用adobe蒸馏器打印时出现问题

(创建PDF文件的

)。我需要确切的替换Printer.Print

打印

文本原样。

目前我已经解决了问题在VB6中为

printer.print函数创建一个包装器dll并在.NET中使用它。原油但很快

解决方案

" Ken Tucker [MVP]" < VB *** @ bellsouth.net>在消息中写道

新闻:大江*************** @ tk2msftngp13.phx.gbl ...
thnx for the reply...
i ''ve already tried this but doesn''t work. it converts the text into
image
before printing. that gives problem while printing with adobe distiller
(for
creating PDF files). I need exact replacement for Printer.Print which
prints
text as it is.
for the time being i''ve solved problem by creating a wrapper dll for
printer.print function in VB6 and used it in .NET. crude but quick
solution
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:Oe***************@tk2msftngp13.phx.gbl...


你必须使用打印文档类。
http://msdn.microsoft.com/library/de...classtopic.asp

Ken
------------------
Sumant < SK ******* @ megawareinc.com>在消息中写道
新闻:%2 ****************** @ TK2MSFTNGP10.phx.gbl ...
Hi,

You have to use the print document class.
http://msdn.microsoft.com/library/de...classtopic.asp

Ken
------------------
"Sumant" <sk*******@megawareinc.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
在VB6中打印文本可以通过Printing.Print完成。在.NET中是否有
替换它?
Drawing.Print不会工作因为它将文本转换为图像然后
打印。所以当我们使用Adobe蒸馏器作为打印驱动程序时,结果PDF doen'的
仍然可以搜索到......
printing text in VB6 can be done just by "Printing.Print". is there any replacement for this in .NET?
Drawing.Print won''t work coz it converts text into image and then prints. so
when we use Adobe distiller as print driver, resulting PDF doen''s remain searchable anymore...




*" Sumant" < SK ******* @ megawareinc.com> scripsit:
* "Sumant" <sk*******@megawareinc.com> scripsit:
VB6中的打印文本只能通过Printing.Print来完成。在.NET中有没有替换它?
printing text in VB6 can be done just by "Printing.Print". is there any
replacement for this in .NET?




< http://www.mvps.org/dotnet/dotnet/samples/printing/ downloads / PrintFramework.zip>


-

Herfried K. Wagner [MVP]

< http:// www .mvps.org / dotnet>



<http://www.mvps.org/dotnet/dotnet/samples/printing/downloads/PrintFramework.zip>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>


这篇关于在.NET中打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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