[VB.NET]建立CrystalReport-使用ADO.NET資料集

每次產生報表和圖表,我都用Excel來做,這次就來試試看用CrystalReport來做報表

1、新增一個DataSet1.xsd
設定好連線字串及Table

2、在Form1上拉進Button和CrystalReportViewer

 

3、在Button事件輸入程式碼

4、結果就出來嘍