Example 2: In this example, we retrieve a list of installed printers using the System.Drawing.Printing.PrinterSettings.InstalledPrinters property and loop through them to print a document on each printer.c# foreach (string printerName in PrinterSettings.InstalledPrinters) { PrintDocument printDoc = new PrintDocument(); printDoc.PrinterSettings.PrinterName = printerName; // define document contents and printing options printDoc.Print(); printDoc.Dispose(); } ``` The package library is part of the .NET Framework, which includes the System.Drawing.Printing namespace.