没有“另存为"对话框时自动打印为PDF [英] Auto Printing to a PDF without the Save As dialog

查看:89
本文介绍了没有“另存为"对话框时自动打印为PDF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开发了一个应用程序(C#-VS 2008),该应用程序可以自动创建2个报告.这些报告始终采用相同的格式,并且始终发送到我们网络上的相同位置.在我的代码中,我可以将"Document.PrinterSettings.PrinterName"设置为自动创建PDF文档的PDF创建者,但是到目前为止,我无法绕过弹出的另存为"对话框.我想对文件名进行硬编码并保存位置,以便在生成报告后将其自动保存,而无需用户干预.

有任何想法吗?

I have developed an application (C# - VS 2008) that, among other things automatically creates 2 reports. These reports are always in the same format and always going to the same location on our network. In my code I am able to set the "Document.PrinterSettings.PrinterName" to a PDF creator that automatically creates the PDF document but so far I have been unable to bypass the Save As Dialog that pops up. I would like to hard code the file names and save locations so that when the reports have been generated they are auto-saved without user intervention.

Any ideas?

推荐答案

您正在使用CutePDF吗?在这种情况下,这可能是不可能的.试试PDF995.看看此链接,该用户与您有完全相同的问题:

http://www.pcreview.co.uk/forums/help-cutepdf-t2246639.html [^ ]
Are you using CutePDF? In that case it might not be possible. Try PDF995. Check out this link, this user has the exact same issue as you:

http://www.pcreview.co.uk/forums/help-cutepdf-t2246639.html[^]


这篇关于没有“另存为"对话框时自动打印为PDF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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