Enumerates the installed printers and returns the index of the default printer.
The following code fills a combo box with the installed printers:
ArrayList arrComboItems = new ArrayList();
int nDefaultPrinter = ChartControl.PrintManager.EnumerateInstalledPrinters(arrComboItems);
for (int i = 0; i < arrComboItems.Count; i++)
{
InstalledPrintersComboBox.Items.Add((String)arrComboItems[i]);
}
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2