Wrong border color for merged cells

Hello Aspose team,

We are currently experiencing an issue with Aspose.Cells starting from version 18.8.0 and continuing through the latest version, 25.5.0, when using the .NET Framework 4.8.

Specifically, when we use the InsertRange method to insert a range of cells into a customer’s sample document, the border color for merged cells appears incorrect.

Please refer to the attached simplified sample code (InsertRangeSampleApp.zip ) to reproduce the issue. In the root folder, there is a truncated customer file named “Original.xlsx.” We would like to draw your attention to the Right Border color of cell B2 both before and after the insertion.

We have also included screenshots for clarification:

As you can see in the screenshots, the Right Border color in cell B2 incorrectly applies the color from the last merged cell (D2/E2), which is not expected behavior. In contrast, the Right Border color in cell C2 does not apply this color.

We have been encountering this behavior since version 18.8.0 and it persists in the latest version, 25.5.0.

Thank you for your attention to this matter.

@licenses,

Thanks for the template Excel file and sample app.

Apparently I was able to reproduce the issue as you mentioned by using your template Excel file and sample code snippet. I noticed wrong border color retrieved for the merged cells.

We require thorough evaluation of the issue. We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-58468

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@licenses,

We are pleased to inform you that your issue (Ticket ID: “CELLSNET-58468”) has been resolved. The fix/enhancement will be included in the next release (Aspose.Cells v25.6) scheduled for release in the first half of June 2025. We will notify you when the next version is released.

The issues you have found earlier (filed as CELLSNET-58468) have been fixed in this update. This message was posted using Bugs notification tool by leoluo