public static void GenerateTableLayout(RPLItemMeasurement[] repItemCollection, float ownerWidth, float ownerHeight, float delta, out PageTableLayout tableLayout, bool expandLayout, bool consumeContainerWhiteSpace) { List <float> list = new List <float>(); List <float> list2 = new List <float>(); int num = 0; int num2 = 0; tableLayout = null; if (repItemCollection == null) { return; } FillXArray(repItemCollection, ownerWidth, list); FillYArray(repItemCollection, ownerHeight, list2, delta); num = list.Count - 1; num2 = list2.Count - 1; if (num <= 0 || num2 <= 0) { return; } tableLayout = new PageTableLayout(num, num2); for (int i = 0; i <= num2 - 1; i++) { for (int j = 0; j <= num - 1; j++) { tableLayout.AddCell(list[j], list2[i], list[j + 1] - list[j], list2[i + 1] - list2[i]); } } tableLayout.AttachReportItems(repItemCollection, delta, consumeContainerWhiteSpace); num = tableLayout.NrCols; num2 = tableLayout.NrRows; if (num <= 0 || num2 <= 0) { tableLayout = null; } else if (num == 1 && num2 == repItemCollection.Length) { int k; for (k = 0; k < num2 && tableLayout.GetCell(k).InUse; k++) { } tableLayout.BandTable = ((k >= num2) ? true : false); } }
public static void GenerateTableLayout(RPLItemMeasurement[] repItemCollection, float ownerWidth, float ownerHeight, float delta, out PageTableLayout tableLayout) { GenerateTableLayout(repItemCollection, ownerWidth, ownerHeight, delta, out tableLayout, expandLayout: false, consumeContainerWhiteSpace: false); }