摘要:[CrystalReport] 輸出至網頁
當報表需要在網頁呈現時,除了用ReportViewer之外,
還有一個簡單的方法:
crReport.Load(Server.MapPath("test.rpt"))
crReport.SetDataSource(DS)
crReport.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, False, "")
這樣就能以PDF的形示直接show在網頁上了。