Hi,
How to set horizontal axis label for chart in Excel file.
I am using following code.
ExcelEngine oengine = new ExcelEngine();
IApplication oApp = oengine.Excel;
oApp.DefaultVersion = ExcelVersion.Excel2007;
IWorkbook oWorkbook = oApp.Workbooks.Create(1);
IWorksheets osheets = oWorkbook.Worksheets;
IWorksheet osheet = osheets .Worksheets[0];
object[] Xvalues = new object[] {"=Sheet1!$A$1:$A$10"}
IChart ochart = oshhet.Charts.Add();
IChartSerie oserie = ochart.Series.Add(ExcelchartType ......);
oserie.EnteredDirectlyCategoryLabel = Xvalues;
My horizontal label value is not set with column range value .
Excel file is attach with mail.
Thanks
sharad kumar
Attachment:
New_folder_(6)_8ba28a11.rar