if (! (worksheet as WorksheetImpl).IsEmpty)
{
range = worksheet.Range[1, 2, worksheet.UsedRange.LastRow, 2];
sheet.Range[i, column + 1].Value = worksheet.Name;
sheet.Range[i, column + 2].Formula = "SUM(" + range.AddressGlobal + ")";
i++;
} |
chart.PrimaryValueAxis.MajorUnit = 2; |