Configuring Printer Settings programmatically
The usage of
SetPrinter API functions gives an opportunity to change the printer settings. But, when using them, I could not have a stable method of changing settings on all Windows OS versions. Below, all possible methods of changing printer parameters will be described and also the solution of how to obtain the stabler behavior for different Windows OS versions. In this article, I will describe the method of setting the printer settings and the problems I faced on different OS versions.