It just working at local with default printer but not work when I upload on IIS, here is my code
.... rptDoc.Load(Server.MapPath("~/reports/academic.rpt")); Common.SetConnectionInfo(rptDoc.Database.Tables); rptDoc.SetParameterValue("@id", id.ToString()); rptDoc.SetParameterValue("@nienkhoa", strMaNienKhoa); rptDoc.PrintToPrinter(1, false, 1, 1);
Thank you for reading my topic