打印到PDF格式 [英] printing to pdf

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

问题描述

现有的制度有很多报道。使用免费的PDF打印机像dopdf或cutepdf用户可以打开报表,选择PDF打印机,输入文件名和保存报告为PDF文件。这个似乎有点繁琐

The existing system has many reports . Using a free pdf printer like dopdf or cutepdf the user can open the report , choose the pdf printer , type in the filename and save the report as a pdf file.This seems a bit tedious

这将是不错的,直接保存为PDF文件只是点击一个按钮的报告。 不幸的是,报告工具组件可是没有PDF导出功能。 。有没有一种方法使用一个第三方组件以编程方式做到这一点的功能。

It would be nice to have the report directly saved as a pdf file just on click of a button. Unfortunately the reporting tool component doesnt have pdf export functionality. . Is there a way to programatically do this function using a third party component.

印刷应该保持沉默,让用户没有要求filename.Report 1,点击后作出名为C:\次数1.pdf为例。 这样的事情 ActivatePdfPrinter(C:\次数1.pdf); printreport; ClosePdfPrinter;

The printing should be silent , so that the user is not asked for a filename.Report 1 when clicked will make a file called c:\1.pdf for example. something like this ActivatePdfPrinter(c:\1.pdf); printreport; ClosePdfPrinter;

或任何其它方法。

我使用Delphi,但如果你认为工作在其他编程语言的任何其他工具,那么我可以在正确的方向进行搜索。

I use delphi but if you suggest any other tools that work in other programming languages then I can search in the right direction.

推荐答案

免费的,开源的的PDFCreator 可以作为一个虚拟打印机,但它也可以使用通过COM。默认的设置,甚至包括COM的例子。

The free, open source PDFCreator can function as a virtual printer but it's also usable via COM. The default setup even includes COM examples.

您可以检查在SourceForge的SVN仓库COM样本就在这里: HTTP ://pdfcreator.svn.sourceforge.net/viewvc/pdfcreator/trunk/COM/

You can check the COM samples in the SourceForge SVN repository right here: http://pdfcreator.svn.sourceforge.net/viewvc/pdfcreator/trunk/COM/

德尔福和ActiveX相处优越,所以你不应该有太多的麻烦。

Delphi and ActiveX get along superbly so you should not have much trouble.

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

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