Hi there,
I’m having an issue with 2 reports we’ve created. They both use aspose.cells (we have an aspose.total license though) to create a bar graph. The reports were displaying fine. Then out of nowhere, with no code changes being made, the borders around the bars disappeared. A co-worker had this same issue with reports he was working on and the issue went away after her rebooted his machine. However, this did not fix my issue.
Any suggestions?
Hi,
Do you convert your chart in the template file to image or render the Excel file (containing the chart) into PDF? Please provide your template Excel file containing the chart and sample code (runnable) to reproduce the issue on our end, we will check it soon.
Also, we recommend you to kindly try our latest version v8.6.1 if it makes any difference.
Thank you.
Hi Brendan,
Thank you for sharing the source snippet, however, we were not able to execute it on our side to confirm the results against the latest build due to the dependency over the variables such as chartDataSet & chartConfigInfo. Could you be kind enough to remove these dependencies from your code to provide a standalone sample application that we could test? You may simulate the DataTable in your code and hard-code the values from chartConfigInfo for demonstration purposes.
Please also provide your feedback on the latest release.
Hi,
I’ve created a standalone project that illustrates both issues I’ve posted.
Thanks,
Brendan
I’ve also attached my output.
Hi Brendan,
Thank you for sharing the sample project.
We have evaluated the presented scenario while using the latest version of Aspose.Cells for .NET 8.6.1, and we are able to notice the issue, that is; borders of the chart bars do not render to the image, however, borders are visible in the resultant spreadsheet (attached). We have logged this case for the product team’s review under the ticket CELLSNET-44016. Please allow us some time to properly analyze the problem cause, and get back to you with updates in this regard.
Hi,
Any chance I can get an estimate on a fix? This is pretty crucial for us and ithas started to happen on more reports than just the ones I’ve mentioned earlier.
thanks,
Brendan
Hi Brendan,
Please note, the ticket logged earlier as CELLSNET-44016 is currently in analysis phase, and therefore we cannot comment on the release schedule for the fix unless we have investigated the matter. Please allow us some time for proper analysis. We will share our results here as soon as the investigation is complete.
Hi,
Thanks for using Aspose.Cells.
By default, the style of charts is same as excel 2007 or later version. The border of bar is none. You may meet your requirement by one of the following solution.
1) Sets the border of bars.
SeriesCollection nSeries = chart.NSeries;
for (int n = 0; n < nSeriesCount; n++)
{
//nSeries[n].Name = Config.getConfigValue(“series”, lang, Convert.ToString(n));
nSeries[n].Border.Color = Color.Black;
}
2) Creates 97-2003 format charts
Modify
Workbook wrkbook = new Workbook();
to
Workbook wrkbook = new Workbook(FileFormatType.Excel97To2003);