- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
在他的博客条目中 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/
我有 json 数据: { "products": [ { "productId" : 0, "productImg" : "../img/product-ph
我是一名优秀的程序员,十分优秀!