Choose printer automatically
-
Hi all, How can i make my application to choose a printer other than the default printer programmatically? thanks:laugh: kleser
Call:
OpenPrinter()
StartDoc()
StartPage()
EndPage()
EndDoc()
ClosePrinter()
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Call:
OpenPrinter()
StartDoc()
StartPage()
EndPage()
EndDoc()
ClosePrinter()
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Kleser wrote: this works with MFC? Yes. You'll also want to check out the
CDC
class as it has most of these as member functions.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
-
Hi all, How can i make my application to choose a printer other than the default printer programmatically? thanks:laugh: kleser
Search MSDN for SetPrinterDevice - there is function you can write in CApp to change app current printer by name. Then default MFC printing routine will use it. Contact me in private, if you will not find it - I will send it to you. Igor Green http://www.grigsoft.com/ Compare It! + Synchronize It! - files and folders comparison never was easier!