// ��������� QueryResult ��� ������ ��� ���������� �������� ������ private QueryResult GetResultForColumn(ReportPart part, params BookColumn[] columns) { QueryResult result = new QueryResult(); string[] FieldNames = new string[columns.Length]; for (int i = 0; i < FieldNames.Length; i++) { FieldNames[i] = part.FieldName(columns[i].column1, StaticColumns, part.DynamicColumns); if (FieldNames[i] == "") return null; result.Columns.Add(FieldNames[i]); } /*for (int i = 0; i < part.Data.Rows.Count; i++) //if (!HasNullValues(part.Data.Rows[i], FieldNames)) result.Rows.Add(part.Data[i, FieldNames]);*/ for (int r = part.Row1; r <= part.Row2; r++) { object[] values = new object[columns.Length]; for (int j = 0; j < columns.Length; j++) values[j] = FM[r, columns[j].column1]; result.Rows.Add(values); } return result; }