Get printer DC given printer name & paper size
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Hello! Suppose that we have a list of printer names and papers in CComboBox. Is there a way to get the printer DC from these info or technically :
CDC* getPrinter(LPCTSTR printerName, LPCTSTR paper, int landscape=1);
Your comments & ideas are really helpful. Thanks :) -
Hello! Suppose that we have a list of printer names and papers in CComboBox. Is there a way to get the printer DC from these info or technically :
CDC* getPrinter(LPCTSTR printerName, LPCTSTR paper, int landscape=1);
Your comments & ideas are really helpful. Thanks :)use CreateDC(...) and pass in a properly filled devmode. Vipin - MVP
-
use CreateDC(...) and pass in a properly filled devmode. Vipin - MVP
Thank you very much for your comments. It really works :) Sovann.