Free Support Forum -

Inline border for range of cells in Excel


I am using Aspose and c# to generate an excel.I want to apply inline border for range of cells in excel like cells(0,5) to cells(10,10) without apply border for each cell.


Thanks for your posting and using Aspose.Cells for .NET.

In order to set style to range of cells, you will have to use the Range.ApplyStyle() method.

Please see the following document, it applies a Style object to range of cells. The Style object can contain various information relating to styles which includes the information of borders too.