步驟 3:新增 Formula 與 Summary 欄位
- 展開 Field Explorer → Formula Fields
- 將 Worth 公式拖至報表區段,顯示每列值
- 若 Field Explorer 不見,選單 View → Document Outline
- 選單 Crystal Reports → Insert → Summary
- Insert Summary 對話框設定:
• Choose the Field to Summarize:Worth 公式
• Calculate this Summary:Sum
• Summary Location:Grand Total
- 摘要欄位自動加入報表
- 除錯執行驗證
步驟 4:使用檔案系統現有報表
- 方案總管刪除專案內
StockObjects.rpt
- 右鍵網站名稱 → Add Existing Item
- 瀏覽至
C:\Microsoft Hands-On-Lab\HOL-ILL05\Source\Excercises 選取 StockObjects.rpt
- 除錯執行,預設頁面載入新報表
此技巧適用於團隊協作:報表設計師獨立設計,開發者直接引用現有 .rpt 檔案。