Print::StartPrintJob - duplex not working

Product: C++ SDK
Product Version: 9.3

When using Print::StartPrintJob with a PrinterMode object, duplex remains set on default value for the printer settings, and printing is done without considering PrinterMode.SetDuplexing function value.

PrinterMode pm;
Print::StartPrintJob(Document, PrinterName.GetString(),
PrinterJob.GetString(), ā€œā€, &PageSet, &printerMode, false);
//if default for printer is duplex, document is printed in duplex mode, and without duplex as set by the funcion call.


Hello, Iā€™m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:


The Duplex setting is no longer supported in Windows PC with XPS print path (all modern versions).

The best option would be to ignore Duplex setting initially, and instead to Print to a virtual printer, such as Microsoft Print to PDF, or Microsoft XPS Document Writer, and then send that PDF/XPS output to the printer yourself using MS APIs.