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 应用 SDK
Windows 应用 SDK
一组 Microsoft 开源库、框架、组件和工具,可供各种应用使用,以便在多个版本的 Windows 上访问 Windows 平台功能。 以前称为 Project Reunion。
15 个问题
Windows API - Win32
Windows API - Win32
一组适用于桌面和服务器应用程序的核心 Windows 应用程序编程接口 (API)。 以前称为 Win32 API。
47 个问题
{count} 票

1 个答案

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