使用檢視器標示庫檢視報表
檢視器標示庫可以讓您存取檢視器的報表檢視功能,而不需在 JSP 頁面中內嵌大量的 Java 程式碼。
使用檢視器標示庫檢視報表
- 在 [專案總管] 檢視中,移至 CrystalReportsDemo\WebContent \Sample Reports 資料夾。
- 展開 [Sample Reports] 節點,在 Customer Profile Report.rpt 上按一下右鍵。
- 選取 [Crystal Reports] > [建立檢視器 JSP]。
- 選取 [插入標準標記程式庫程式碼],然後按一下 [確定]。
- 在 Customer Profile Report-viewer.jsp 上按一下右鍵,然後按一下 [執行] > [在伺服器上執行]。
- 選取 [手動定義新的伺服器] 選項。
- 展開 [Apache] 節點,並選取正確的 Apache Tomcat 伺服器版本。
- 在 [伺服器執行階段] 清單中選取 Apache Tomcat 伺服器版本,然後按一下 [完成]。
Crystal Reports 檢視器 DHTML 報表頁面便會啟動。