gpt4 book ai didi

Delphi - 我如何告诉系统使用哪台打印机?

转载 作者:行者123 更新时间:2023-12-03 14:46:41 24 4
gpt4 key购买 nike

打印我使用的 TRichEdit 的内容

   RichEdit.Print('My Document Name'); 

有时我需要在“printer1”上打印,有时我需要在“printer2”上打印

问题:

如何告诉系统使用哪台打印机?

最佳答案

您设置 Printer.PrinterIndex 。如文档所述,设置“-1”设置为默认打印机,并且 Printers属性包含已安装打印机的列表。

关于Delphi - 我如何告诉系统使用哪台打印机?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3786063/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com