Bug in range.SetOutlineBorder


#1

Hi,

seems to be I have found a bug :frowning:

Wanted to set a range border orround my data-cells

range = cells.CreateRange(1, 1, 10, 10);
range.SetOutlineBorder(BorderType.RightBorder, CellBorderType.Medium, Color.Red);
range.SetOutlineBorder(BorderType.TopBorder, CellBorderType.Medium, Color.Red);
range.SetOutlineBorder(BorderType.BottomBorder, CellBorderType.Medium, Color.Red);
range.SetOutlineBorder(BorderType.LeftBorder, CellBorderType.Medium, Color.Red);

Now, all cells adjoin the border and have set a backcolor, the backcolor gets automatic to black!

Expect Example:
The Cell A2 has on the left a medium border and some backcolor, it gets NOT the black-backcolor when setting up a medium border orround all data-cells including the cell A2 with the medium border on the left. Maybe the aspose code is checking the border of the current cell and notice that the border is those it should set to and ignores the command!?

Can this bug be removed fast?

Thanks one more time for support, Stefan


#2

Hi Stefan,

Sorry for the bug. Now it’s fixed. Please download fix 1.8.5 and have a try.


#3

Dear Laurence,

it works great, many thanks!

-Stefan