Hi,
I have a problem when save a bar chart from xlsx to image.
The labels from series are saved in the image with different aligment (vertical) then created in the excel file (horizontal), see the images attached.
I'm using SPIRE.XLS version 7.11.49 and the following code:
Spire.Xls.Workbook workbook = new Spire.Xls.Workbook();
workbook.LoadFromFile(excelFile, ExcelVersion.Version2010);
//First change some values
Spire.Xls.Worksheet wSheet = (Spire.Xls.Worksheet)workbook.Worksheets.Where(s => s.Name == "Demografias").First();
wSheet.Range["A4"].NumberValue = new Random().Next(50, 500);
workbook.Save();
//Export charts as images
System.Drawing.Image[] imgs = workbook.SaveChartAsImage(wSheet);
for (int i = 0; i < imgs.Length; i++) {
imgs[i].Save(string.Format("img-{0}.png", i), ImageFormat.Png);
}
Thanks in advance!
Federico