Код: Выделить всё
PivotField r1 = pt.PivotFields["Invoice Type"] as PivotField;
r1.Axis = AxisTypes.Row;
r1.RepeatItemLabels = true;
r1.Subtotals = SubtotalTypes.None;
pt.Options.RowHeaderCaption = "Invoice Type";
Код: Выделить всё
PivotField r1 = pt.PivotFields["Invoice Type"] as PivotField;
r1.Axis = AxisTypes.Row;
r1.RepeatItemLabels = true;
r1.Subtotals = SubtotalTypes.None;
pt.Options.RowHeaderCaption = "Invoice Type";
foreach (var field in pt.RowFields)
{
PivotReportFilter filter = new PivotReportFilter(field.Name, true);
pt.ReportFilters.Add(filter);
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... ls-package
Мобильная версия