Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Selecting a printer in .Net

I have a win forms app that needs to allow the user to select a printer from the list of installed printers on the PC. Is there a built in dialog or do i have to write a custom dialog ?

like image 379
RC1140 Avatar asked Feb 28 '23 03:02

RC1140


2 Answers

You can use the built in common dialog PrintDialog or you can use PrinterSettings.InstalledPrinters to get all the printer names if you want to build your own dialog.

like image 164
Dan Byström Avatar answered Mar 06 '23 15:03

Dan Byström


PrintDialog is probably what you want.

like image 26
Christian Hayter Avatar answered Mar 06 '23 16:03

Christian Hayter