hello Mudassir...
I'm building a chart using the cells library
and embedding it in a powerpoint presentation using the slides library...
as part of embedding the chart on the slide the following code
is used to create the foreground picture for the chart:
com.aspose.cells.Chart chart = wb.getWorksheets().getSheet("ChartSheet").getCharts().getChart(0);
ImageOptions imgOpts = new ImageOptions();
imgOpts.setImageFormat(ImageFormat.PNG);
imgOpts.setFashion(FileFormatType.EXCEL2003);
chart.toImage(fileName + ".png", imgOpts);
when opening the completed powerpoint presentation the chart appears
and has the correct data, but the colors are incorrect...
activating the chart with either a right-click or a double-click will
successfully open it for editing, and it also refreshes the chart such
that the colors display correctly...
so...the question is -- how can I make the chart colors appear correctly
without forcing the user to activate the chart?
Thank you!