... NULL, lpDevMode ); Or make this configuration as the default for this printer and for all applications using this printer. Code: Select all DWORD dw; PRINTER_INFO_2 *pi2; // get default printer info structure which contains the DEVMODE GetPrinter( m_hPrinter, 2, NULL, 0, &dw ); pi2 = ...