Что я хочу:

Что я получаю:

Код, который я использовал:
Код: Выделить всё
var testDoc = new SLDocument();
var testStyle = testDoc.CreateStyle();
testStyle.Border.Outline = true;
testStyle.Border.SetLeftBorder(DocumentFormat.OpenXml.Spreadsheet.BorderStyleValues.Thin, Color.Black);
testStyle.Border.SetRightBorder(DocumentFormat.OpenXml.Spreadsheet.BorderStyleValues.Thin, Color.Black);
testStyle.Border.SetTopBorder(DocumentFormat.OpenXml.Spreadsheet.BorderStyleValues.Thin, Color.Black);
testStyle.Border.SetBottomBorder(DocumentFormat.OpenXml.Spreadsheet.BorderStyleValues.Thin, Color.Black);
testDoc.SetCellStyle("A3", "F5", testStyle);
return testDoc;
Я использую SpreadsheetLight версии 3.5.0 (самая последняя версия на NuGet).
Подробнее здесь: https://stackoverflow.com/questions/704 ... al-borders
Мобильная версия