文檔首頁>>FastReport中文文檔>>示例 2.從上到下打印帶有重復(fù)行的表格
示例 2.從上到下打印帶有重復(fù)行的表格
private void Table1_ManualBuild(object sender, EventArgs e) { // Printing row 0 and all of its columns Table1.PrintRow(0); Table1.PrintColumns(); // Printing 3 copies of row 1 and all of its columns for (int i = 0; i < 3; i++) { Table1.PrintRow(1); Table1.PrintColumns(); } // printing row 2 and all of its columns Table1.PrintRow(2); Table1.PrintColumns(); }在本例中,中間一行被打印 3 次。結(jié)果如下