Tag Archives: send to printer

Let the user select a printer and then send a printout directly to it in C#

When it starts, the program uses the following code to list the available printers in a ComboBox. // List the available printers. private void Form1_Load(object sender, EventArgs e) { foreach (string printer in PrinterSettings.InstalledPrinters) cboPrinter.Items.Add(printer); } This code loops through … Continue reading

Posted in printers, printing | Tagged , , , , , , , , , , | Leave a comment

Send a printout directly to a specific printer in C#

To send a printout directly to a specific printer, simply set the PrintDocument object’s PrinterSettings.PrinterName property to the printer’s name. This example uses the following code to print directly to the printer named “HP Deskjet F300 Series.” // Print. private … Continue reading

Posted in printers, printing | Tagged , , , , , , , , | 3 Comments