gpt4 book ai didi

windows - 将 GDI 转换为 XPS 时,抑制 Microsoft XPS Document Writer 上的“另存为”对话框

转载 作者:可可西里 更新时间:2023-11-01 10:40:52 27 4
gpt4 key购买 nike

在他的博客条目中 Printing documents to Microsoft XPS Document Writer without user interaction冯远说

If you're printing from your own applications, it's easy to specify MXDW as the printer driver and provide a file name for the XPS document to be saved to

任何人都可以解释如何做到这一点并提供代码示例吗?

我遇到的主要问题是抑制 Microsoft XPS Document Writer 弹出的“另存为”对话框。我讨厌像 Yuan 在他的帖子中那样诉诸 UI hacking。

目前,我的应用程序在用户想要使用的任何打印机的设备上下文上进行 GDI 绘图调用。我可以在 XPS Document Writer 上进行这些调用,但当需要完成打印时,XPS Writer 会弹出另存为对话框。

最佳答案

确实是同一个作者提供了答案Printing to Microsoft XPS Document Writer without showing File Save Dialog Box .解决方案是使用 Microsoft XPS Document Writer 打印机打印到文件。

关于windows - 将 GDI 转换为 XPS 时,抑制 Microsoft XPS Document Writer 上的“另存为”对话框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/810550/

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