////bind the dropdownlist for available printer
//DropDownList1.DataSource = System.Drawing.Printing.PrinterSettings.InstalledPrinters;
//DropDownList1.DataBind();
//bind the dropdownlist for available printer At Page Load
DropDownList1.DataSource = System.Drawing.Printing.PrinterSettings.InstalledPrinters;
DropDownList1.DataBind();
// on button click select printer name from dropdownlist
ReportDocument myReportDocument= new ReportDocument();
myReportDocument.Load(Server.MapPath(@"~\myReport.rpt"));
myReportDocument.SetDataSource(ds);
myReportDocument.PrintOptions.PrinterName = DropDownList1.SelectedValue.ToString();
myReportDocument.PrintToPrinter(1, false, 1, 1);