SetOutlineBorder Problem


#1

When I use SetOutlineBorder on a Range object, it does what it should in that it puts the appropriate border within the range. However, it also is adding some random borders within the cells of the range. Is this is a known bug, or am I using it improperly? Here is a sample of my code:



Range thisRange = sheet.Cells.CreateRange(currentRangeUpperLeftCell, currentRangeLowerRightCell);

thisRange.SetOutlineBorder(BorderType.BottomBorder, CellBorderType.Thin, System.Drawing.Color.Black);

thisRange.SetOutlineBorder(BorderType.TopBorder, CellBorderType.Thin, System.Drawing.Color.Black);

thisRange.SetOutlineBorder(BorderType.LeftBorder, CellBorderType.Thin, System.Drawing.Color.Black);

thisRange.SetOutlineBorder(BorderType.RightBorder, CellBorderType.Thin, System.Drawing.Color.Black);




#2

Have you tried the latest hotfix? If this problem still exists, please send me more of your code and the designer file if you have one.


#3

Laurence -

The latest hotfix fixed the problem. Thanks very much.