保存打印机设置参数 [英] Save Printer Setup Parameters

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

问题描述

我正在使用Delphi 2006编写程序,并将数据存储在XML文件和Firebird数据库中。我使用FastReports,Excel或QuickPDF创建报告。我允许我的用户将多个报告打包在一起,并定向到他们选择的目的地,无论是PDF文件,打印机,屏幕还是电子邮件。

I am writing a program using Delphi 2006 and storing data in XML files and a Firebird database. I create reports using either FastReports, Excel or QuickPDF. I allow my users to package several reports together and be directed to a destination of their choice, whether it is a PDF file, a printer, the screen, or email.

我希望我的用户能够为他们发送给打印机的报告配置打印机选项。为此,我将使用打印机对话框来选择打印机并设置该打印机的属性。我希望能够捕获并存储这些属性,以便当它们运行报告包时,它们都将使用他们选择的配置全部进入正确的打印机。

I want my users to be able to configure their printer choices for the reports they send to printers. To do this, I will use the printer dialog to choose a printer and set the properties of that printer. I want to be able to capture those properties and store them so that when they run their package of reports, they will all go to the correct printer using the configurations they have chosen.

我知道不同的打印机具有不同的配置可能性。例如,我使用的一个将允许我选择打印小册子样式,以便您可以从报告中生成5 1/2 X 8 1/2小册子。当用户在其数据包中配置报告时,用户可能会选择类似的选项,并希望该报告以这种方式打印。我可能不知道很多可能性,但如果可能的话,我想允许。我只是不知道如何从打印机对话框中捕获该配置,将其存储在数据库中,然后在需要打印报告时使用该信息来配置打印机。

I know different printers have different configuration possibilities. For example, one that I use will allow me to choose to print booklet style so you can produce a 5 1/2 X 8 1/2 booklet from a report. It's possible that a user might choose an option like that when they are configuring a report in their package and expect that report to print in that manner. There are probably lots of possibilities that I am not aware of but would like to allow if that is possible. I just don't know how to capture that configuration from the printer dialog, store it in a database and then use that information to configure the printer when it's time to print the report.

如何将打印机对话框中存储的信息转换为可以存储(甚至存储在blob中)的信息,然后使用该信息来配置打印机?

How can I translate the information stored in the printer dialog into something I can store (even in a blob) in a database and then use that information to configure the printer?

谢谢您的帮助。

推荐答案

看来,类似的问题已得到可能为我解决问题的信息。感谢您的回复。

It appears that a similar question was answered with information that may solve my problem for me. Thanks for your responses.

这篇关于保存打印机设置参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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