public ActionResult ISR060_GetRptInstallationRequestData(string strMaintenanceNo) { strMaintenanceNo = "5020N20110030"; IReportHandler reportHandler = ServiceContainer.GetService <IReportHandler>() as IReportHandler; List <RPTInstallRequestDo> rptList = reportHandler.GetRptInstallationRequestData(strMaintenanceNo); IDocumentHandler dochandler = ServiceContainer.GetService <IDocumentHandler>() as IDocumentHandler; List <tbm_DocumentTemplate> dLst = dochandler.GetDocumentTemplateByDocumentCode(DocumentCode.C_DOCUMENT_CODE_INSTALL_REQUEST); ReportDocument rptH = new ReportDocument(); string path = ReportUtil.GetReportPath("Reports/ISR060_InstallationRequest.rpt", Server.MapPath("/")); rptH.Load(path); List <RPTInstallRequestDo> lst = new List <RPTInstallRequestDo>(); lst.Add(rptList[0]); if (dLst.Count > 0) { lst[0].DocumentNameEN = dLst[0].DocumentNameEN; lst[0].DocumentVersion = dLst[0].DocumentVersion; } rptH.SetDataSource(lst); Stream stream = rptH.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat); rptH.Close(); return(File(stream, "application/pdf")); }