Using the SetPrinter function to modify printer settings failed

dia l 0 信誉分
2024-04-10T02:28:12.8133333+00:00

I use DocumentProperties function to modify the DEVMODE structure,and the use SetPrinter function to update printer setting. The DEVMODE structure seems to be changed correctly, but the printer always prints the same way.

Windows 开发 | Windows 应用 SDK
Windows 开发 | Windows API - Win32

1 个答案

排序依据: 非常有帮助
  1. Xiaopo Yang - MSFT 12,736 信誉分 Microsoft 外部员工
    2024-04-11T05:56:11.8666667+00:00

    Hello @dia l,

    but the printer parameters seem to have no effect, the printer always prints the same way.

    You can set and print from GUI to check if the printer supports these settings or try other printer settings. The APIs all work. You need to consult the printer manufacturer and we have no printers to follow up.

    Thank you.

    此答案是否有帮助?


你的答案

提问者可以将答案标记为“已接受”,审查方可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。