@statista_it,
Actually, PowerPoint uses system regional setting while displaying presentation. So there is no option to manage it from Aspose.Slides. If the output is an image or PDF desired result can be achieved using following sample code:
public void CustomizeRegionalSettingExample()
{
using (Presentation pres = new Presentation())
{
//Creating chart with required values on the axis.
IChart chart = pres.Slides[0].Shapes.AddChart(ChartType.ClusteredColumn, 100, 100, 500, 400);
chart.ChartData.Series[0].DataPoints[0].Value.AsCell.Value = 100000;
chart.Axes.VerticalAxis.NumberFormat = "#,##0.00";
chart.Axes.VerticalAxis.IsNumberFormatLinkedToSource = false;
CultureInfo originalCulture = (CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();
try
{
//set separator manually
CultureInfo newCulture = (CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone();
newCulture.NumberFormat.NumberDecimalSeparator = ",";
newCulture.NumberFormat.NumberGroupSeparator = ".";
//or instead use specific culture settings
// CultureInfo newCulture = new CultureInfo("es-ES", false);
Thread.CurrentThread.CurrentCulture = newCulture;
pres.Save("output.pdf", SaveFormat.Pdf);
pres.Slides[0].GetThumbnail(1, 1).Save("output.png", ImageFormat.Png);
}
finally
{
Thread.CurrentThread.CurrentCulture = originalCulture;
}
}
}