First report.Load("C:\Report\exam.rpt") this path is outside website folder C:\Report\exam.rpt Report will be Generated.

but report.Load(Server.mapPath("~\Report\exam.rpt")) geting some error

Load report failed.Stack:: at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened() at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob) at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)

How to fix issues .

Related posts

Recent Viewed