Hi,
I creating a excel sheet with chart and it is working fine
but chart style is not working… Always it shows the default chart
style… Below is my code :
AsWorkBook = new Workbook();
int sheetIndex = AsWorkBook.Worksheets.Add();
sheet = AsWorkBook.Worksheets[sheetIndex];
int chartIndex = sheet.Charts.Add(ChartType.LineStackedWithDataMarkers, 5, 0, 15, 5);
Chart chart = sheet.Charts[chartIndex];
chart.Style = 46;
chart.NSeries.Add(“Data!B12:D12”, true);
chart.PlotArea.Border.IsVisible = true;
chart.CategoryAxis.MajorGridLines.IsVisible = false;
chart.NSeries.IsColorVaried = true;
chart.GapWidth = 20;
chart.PlotArea.BackgroundMode = BackgroundMode.Automatic;
chart.Legend.Position = LegendPositionType.Bottom;
sheet.AutoFitColumns();
sheet.Name = “Chart”;
Hi,
Thanks Amjad Sahi,
it is working fine… I’m saving the excel sheet in xls format…
Hi,