文檔首頁>>FastReport中文文檔>>示例 4.從左到右打印帶有重復列的表格
示例 4.從左到右打印帶有重復列的表格
private void Table1_ManualBuild(object sender, EventArgs e) { // printing column 0 and all of its rows Table1.PrintColumn(0); Table1.PrintRows(); // printing 3 copies of column 1 and all of its rows for (int i = 0; i < 3; i++) { Table1.PrintColumn(1); Table1.PrintRows(); } // printing column 2 and all of its rows Table1.PrintColumn(2); Table1.PrintRows(); }在本例中,表格中間一列打印了 3 次。結(jié)果如下