'Usage
Dim instance As PrintManager
Dim printerIndex As Integer
Dim paperSources As ArrayList
Dim value As PaperSource
value = instance.EnumeratePaperSources(printerIndex, paperSources)
ArrayList arrComboItems = new ArrayList();
PaperSource defaultPaperSource = ChartControl.PrintManager.EnumeratePaperSources(currentPrinter, arrComboItems);
for (int i = 0; i < arrComboItems.Count; i++)
{
if ((String)arrComboItems[i] == defaultPaperSource.SourceName)
selectedIndex = i;
PaperSourceComboBox.Items.Add((String)arrComboItems[i]);
}
if (selectedIndex != -1)
PaperSourceComboBox.SelectedIndex = selectedIndex;
Requirements
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