- PaperSource pkSource;
- List
- protected void comboFillPapersource()
- {
- for (int i = 0; i < printDoc.PrinterSettings.PaperSources.Count; i++)
- {
- if (printDoc.PrinterSettings.PaperSources[i].SourceName == "test")
- {
- pkSource = printDoc.PrinterSettings.PaperSources[i];
- }
- listPaperSource.Add(printDoc.PrinterSettings.PaperSources[i]);
- }
- DropDownPaperSource.DataSource = listPaperSource;
- DropDownPaperSource.DataTextField = "SourceName";
- DropDownPaperSource.DataValueField = "RawKind";
- DropDownPaperSource.SelectedItem = pkSource;
- DropDownPaperSource.DataBind();
- }
With the error cant convert papersourse to listitem
:/
Dorababu MekaPosted Jan 12, 2013, 3:25 AM