protected void btnPrint_Click(object sender, EventArgs e) { ReportDocument report = new ReportDocument(); report.Load(Server.MapPath("VisitCR.rpt")); ClubDBEntities club = new ClubDBEntities(); report.SetDataSource(club.getVisitReport(SubID)); string printer = ClubWebApp.Properties.Settings.Default.DefaultPrinter; report.PrintOptions.PrinterName = printer; report.PrintToPrinter(1, false, 0, 0); }