using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Windows.Forms; using System.Drawing; using System.Data; using FastReport; using FastReport.Data; using FastReport.Dialog; using FastReport.Barcode; using FastReport.Table; using FastReport.Utils; namespace FastReport { public class ReportScript { private void Table1_ManualBuild(object sender, EventArgs e) { // we will print header, then two "Year" groups (first one with 2 and // second with 3 "Month" groups), then total int[] columnIndices = new int[] { 0, 1, 1, 2, 1, 1, 1, 2, 3 }; // print header (first 2 rows), then four "Employee" rows, then total int[] rowIndices = new int[] { 0, 1, 2, 2, 2, 2, 3 }; // print rows/columns foreach (int rowIndex in rowIndices) { Table1.PrintRow(rowIndex); foreach (int columnIndex in columnIndices) { Table1.PrintColumn(columnIndex); } } } } }