开发模式结构
我有需要通过打印驱动程序驱动的文件,然后另存为文件。我是否可以通过编程方式使用 DevMode 结构来驱动这些文件,而无需打开创建这些文件的应用程序?另外,我是否可以更改 DevMode 结构值以通过编程方式更改为其他文件类型并继续驱动它们并将它们保存到文件中?
I have files I need to drive thru a print driver and save then as files. Can I programactly use the DevMode Structure to drive these files without openning the application it was created in? Also can I change the DevMode Structure values to change to other file types programmatically and continue to drive them and save them to files?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当您说“您有想要通过打印驱动程序驱动的文件”时,我假设您的意思是这些文件是输入(文档)文件,例如 Word 文档、文本文件、.jpg 文件等,对吗?
如果是这样,那么我想你的想法不会成立。 DEVMODE 是打印驱动程序用于与应用程序通信的驱动程序结构。它具有打印作业所需的设置。然而,应用程序通过实际将其内容转换为 GDI 格式来创建打印作业,然后将其传递到打印驱动程序,由打印驱动程序将其转换为打印机格式。例如:Word 文档由 Word 应用程序读取,其内容转换为 GDI API 调用并发送到 GDI,然后 GDI 将其发送到驱动程序,驱动程序将其转换为打印机语言(例如 PCL 或 PS)。
如果您能提供更多关于为什么要这样做的详细信息,我可以帮助您
When you say "you have files you want to drive thru a print driver" - I assume you mean these files are input (document) files like a Word document, a Text file, a .jpg file etc, correct?
If so, then I guess your idea wont hold good. DEVMODE is a driver structure used by the print driver to communicate to the application. It has the settings which are needed for printing the job. However, the application creates the print job by actually converting its content into the GDI format which is then passed to the print driver which converts it into the printer format. So for eg: A Word doc is read by the Word application, its content converted to GDI API calls and sent to GDI which then sends it to the driver which converts it into the printer language (say PCL or PS).
If you can give more details on why you want to do this, I can help you out