Windows 應用程式中的報表
如果是使用 Visual Basic 或 C# 來開發 Windows 應用程式,可以在 Windows Form 上使用在 Visual Studio 工具箱中當成控制項的 Crystal Reports Windows Form Viewer 來裝載報表。本章節將說明如何設定 Windows Form Viewer 來裝載 Crystal Report。
在 Windows 應用程式中裝載報表
Windows Form Viewer 不僅提供了在 Windows 應用程式上檢視報表的便利性,在相同的應用程式中也能和其他的控制項產生互動,甚至可以動態地更新所裝載的報表。
在 Windows 應用程式中裝載報表包含以下步驟 (選擇性的步驟與自訂 Windows Form Viewer 及/或 Windows 應用程式有關)。
- 建立 Windows 應用程式
- 將 Windows Form Viewer 加入應用程式
- 調整 Windows Form Viewer 屬性 (選擇性)
- 存取 Windows 專案中的報表
- 繫結報表與 Windows Form Viewer
- 與 Windows Form 中其他控制項互動 (選擇性)
- 建置和執行 Windows 應用程式
- 檢視 Windows Form Viewer 中的報表