XPS驱动程序问题:重复页面 [英] XPS driver issue: duplicate pages
问题描述
我们使用WinDDK实现了一个XPS驱动程序(基于 XPSDrvSmpl 示例)。但是,当我们在打印对话框中选择的份数超过1时,输出文件(.xps)具有重复的页面(生成的XPS文件具有文档的第一个副本
,+第二个副本等等,因此如果原始文件有2页,则输出文件有2页×副本数)。我们希望在输出文件中有1个副本,并将副本数作为参数。
We have implemented an XPS driver using WinDDK (based on the XPSDrvSmpl example). But when we select more than 1 in the number of copies in the print dialog, the output file (.xps) has duplicate pages (the generated XPS file has the first copy of the document, + second copy, and so on, thus if the original file has 2 pages, the output file has 2 pages x the number of copies). We would like to have 1 copy in the output file and the number of copies as a parameter.
使用Microsoft XPS打印机,输出文件(.xps)只有1个文档副本。
Using Microsoft XPS printer, the output file (.xps) has 1 copy of the document only.
您知道如何解决这个问题吗?
Do you know how to solve this issue?
预先感谢您的帮助,
Adriane
推荐答案
我不知道XPS驱动程序究竟是怎样的,但是在V3驱动程序中,你的DeviceCapabilities函数应该返回数字查询DC_COPIES值时支持的副本的数量。如果您返回1,那么print processsor将通过提交
页面 copy 次数来进行复制。
此外,整理也会影响这一点。司机应报告支持。
Also collating will influence this. The driver should report it supported.
这篇关于XPS驱动程序问题:重复页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!