編譯程式碼. 這項範例需要:. 表單上名稱為PrintGrid 的Button 控制項。 名為DataGrid1 的DataGrid 控制項。 名稱為PrintDocument1 的PrintDocument 元件。
msdn.microsoft.com