將非型別式報表元件與報表一起載入
若要將非型別式報表元件與報表一起載入,請在表單的原始程式檔中呼叫 ReportDocument 類別的 Load 方法。
例如,若要將非型別式報表元件 reportDocument1 與 c:\My Report.rpt 一起載入:
[Visual Basic]
reportDocument1.Load ("c:\My Report.rpt")
[C#]
reportDocument1.Load ("c:\\My Report.rpt");
[C++]
reportDocument1->Load ("c:\\My Report.rpt");
[VJ#]
reportDocument1.Load ("c:\\My Report.rpt");