private static void AddBody(Report report, Modeling.Report repdef) { var coldefs = new List<Viziblr.Reporting.RDL2005.ColumnDef>(); coldefs.AddRange(repdef.ColumnDefinitions); while (coldefs.Count < repdef.DataTable.Columns.Count) { var coldef = new ColumnDef(); coldef.Width = repdef.DefaultColumnWidth; coldefs.Add(coldef); } var body = new Body(); SetBodyProperties(repdef, body); AddTitle(repdef, body); AddTableDataRegion(coldefs, repdef, body); report.Body = body; }
private static void AddBody(Report report, Modeling.Report repdef) { var coldefs = new List <Viziblr.Reporting.RDL2005.ColumnDef>(); coldefs.AddRange(repdef.ColumnDefinitions); while (coldefs.Count < repdef.DataTable.Columns.Count) { var coldef = new ColumnDef(); coldef.Width = repdef.DefaultColumnWidth; coldefs.Add(coldef); } var body = new Body(); SetBodyProperties(repdef, body); AddTitle(repdef, body); AddTableDataRegion(coldefs, repdef, body); report.Body = body; }