T
trint
Can someone help me to get this code to work...I'm unsure what the
'printDoc' variable is supposed to be?
// Add list of paper sources found on the printer to the combo box.
// The DisplayMember property is used to identify the property that
will provide the display string.
comboPaperSource.DisplayMember="SourceName";
PaperSource pkSource;
for (int i = 0; i < printDoc.PrinterSettings.PaperSources.Count; i++){
pkSource = printDoc.PrinterSettings.PaperSources;
comboPaperSource.Items.Add(pkSource);
}
Thanks,
Trint
'printDoc' variable is supposed to be?
// Add list of paper sources found on the printer to the combo box.
// The DisplayMember property is used to identify the property that
will provide the display string.
comboPaperSource.DisplayMember="SourceName";
PaperSource pkSource;
for (int i = 0; i < printDoc.PrinterSettings.PaperSources.Count; i++){
pkSource = printDoc.PrinterSettings.PaperSources;
comboPaperSource.Items.Add(pkSource);
}
Thanks,
Trint