ISheet chartSheet = workbook.CreateSheet("PieChart");
var headerCellStyle1 = workbook.CreateCellStyle();
var headerFont1 = workbook.CreateFont();
headerFont1.Boldweight = (short)FontBoldWeight.Bold;
headerFont1.Color...
ISheet chartSheet = workbook.CreateSheet("PieChart");
var headerCellStyle1 = workbook.CreateCellStyle();
var headerFont1 = workbook.CreateFont();
headerFont1.Boldweight = (short)FontBoldWeight.Bold;
headerFont1.Color = HSSFColor.Black.Index;
headerCellStyle1.SetFont(headerFont1);
chartSheet.CreateDrawingPatriarch();
int cellIndex = 0;
var row = chartSheet.CreateRow(0);
foreach (var record in recordPie)
{
var cellpie = row.CreateCell(cellIndex);
cellpie.SetCellValue(record.ModuleName);
cellpie.CellStyle = headerCellStyle1;
cellIndex++;
}
cellIndex = 0;
row = chartSheet.CreateRow(1);
foreach (var record in recordPie)
{
row.CreateCell(cellIndex).SetCellValue((double)record.NumberOfRecords);
cellIndex++;
}
var anchor = chartSheet.DrawingPatriarch.CreateAnchor(0, 0,...