用C#打印PDF? [英] PDF printing in C# ?

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

问题描述



你好,


有没有办法轻松地将.pdf文件打印到打印机?

(没有外部组件)

谢谢。


Hello,

Is there a way to easily print a .pdf file to the printer ?
(without an external component)
Thanks.

推荐答案

2004年6月16日星期三08:39:33 +0200,cybertof写道:
On Wed, 16 Jun 2004 08:39:33 +0200, cybertof wrote:

您好,

有没有办法轻松打印.pdf文件到打印机?
(没有外部组件)

Hello,

Is there a way to easily print a .pdf file to the printer ?
(without an external component)



我会说不!


我打印的唯一方法是使用Acrobat Reader或Ghostscript

gsprint然后通过System.Diagnostics.Process启动


如果您的应用程序是商业版,那么Acrobat Reader是您唯一的选择,

除非您卖出一百万份......


真正困难的方法是创建一个.NET组件,

打印PDF ...如果你这样做,请告诉我!!!


// Anders


I would say No!

The only way I have made it print is using Acrobat Reader or Ghostscript
gsprint and then starting it via System.Diagnostics.Process

If your application is commercial then Acrobat Reader is your only choice,
unless you sell a million copies of it...

The really hard way would of cause be to create a .NET component that
prints PDF... If you do, PLEASE let me know!!!

// Anders


文章< 1t **************** @ morateknikutveckling.se>,
一个************* @ morateknikutveckling.se 说...
In article <1t****************@morateknikutveckling.se>,
an*************@morateknikutveckling.se says...
我打印的唯一方法就是使用Acrobat Reader或Ghostscript
gsprint然后通过System.Diagnostics.Process启动它
The only way I have made it print is using Acrobat Reader or Ghostscript
gsprint and then starting it via System.Diagnostics.Process




嗨!


是的,但我不认为Acrobat Reader会公开一个强大的COM接口来实现它。


可以通过一个shell调用如:

acrord32.exe / h /pd:\test.pdf


但是:

- 它会使acrobat阅读器出现

- 它最终没有关闭

任何想法都可以正确完成(不会出现并在结束时关闭)?

问候,

Cyber​​tof。



Hi !

Yes but I don''t think Acrobat Reader exposes a robust COM interface to
do it.

It is possible to do it through a shell call like :

acrord32.exe /h /p d:\test.pdf

But :
- it makes acrobat reader appear
- it does not close at the end
Any idea to do it properly (not appear and closing at the end) ?
Regards,
Cybertof.


" Anders Eriksson" <一个************* @ morateknikutveckling.se>在消息中写道

新闻:1t **************** @ morateknikutveckling.se ...
"Anders Eriksson" <an*************@morateknikutveckling.se> wrote in message
news:1t****************@morateknikutveckling.se...
非常困难的方法是创建一个打印PDF的.NET组件...如果你这样做,请告诉我!!!
The really hard way would of cause be to create a .NET component that
prints PDF... If you do, PLEASE let me know!!!



而我!



And me!


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

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