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
{count} 票

1 个答案

排序依据: 非常有帮助
  1. Xiaopo Yang - MSFT 12,731 信誉分 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.


你的答案

问题作者可以将答案标记为“接受的答案”,这有助于用户了解已解决作者问题的答案。