从Delphi打印不同的文档类型

本文介绍了如何从Delphi应用程序中打印各种类型的文件,利用ShellExecute API函数和PrintTo命令,实现即使对未知文件类型也能正确发送到关联的打印应用程序进行打印。同时讨论了指定打印机的方法。
摘要由CSDN通过智能技术生成

If your Delphi application needs to operate on various types of files, one of the tasks you might have for your application is to allow the user of the application to print a file, whatever the file type is.

如果您的Delphi应用程序需要处理各种类型的文件,则对于应用程序,您可能要执行的任务之一是允许应用程序的用户打印文件,无论文件类型是什么。

Most document-oriented applications, like MS Word, MS Excel or Adobe can easily print documents created in that program. For example, Microsoft Word saves the text you write in documents with DOC extension. Since Word determines what is the "raw" contents of a .DOC file it knows how to print .DOC files. The same applies for any "known" file type holding some printable information.

大多数面向文档的应用程序,例如MS Word,MS Excel或Adobe,都可以轻松打印在该程序中创建的文档。 例如, Microsoft Word将您编写的文本保存在带有DOC扩展名的文档中。 由于Word确定.DOC文件的“原始”内容是什么,因

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值