how to change printers without PrintDialog?
-
I have 2 printers installed, i need to switch from one to another without user interface. how to set the printinfo properties programatically? were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
-
I have 2 printers installed, i need to switch from one to another without user interface. how to set the printinfo properties programatically? were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
-
I have 2 printers installed, i need to switch from one to another without user interface. how to set the printinfo properties programatically? were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
1 : Get the handle to devmode and devnames structures by calling the OpenPrinter and GetPrinter API calls and populate PRINTER_INFO_2 strucure. Copy these handles to printInfo.m_pPD->m_pd.hDevMode and printInfo.m_pPD->m_pd.hDevNames 2 : Call SelectPrinter() API with the handles. Make sure to reset to the original printer properties.