Skip to content

Instantly share code, notes, and snippets.

View AsposeCellsBlog's full-sized avatar

AsposeCellsBlog AsposeCellsBlog

  • http://products.aspose.com/cells/
View GitHub Profile
@AsposeCellsBlog
AsposeCellsBlog / Apply_Cell_Borders_on_Excel_Worksheet_Cells.java
Created October 12, 2018 12:29
Apply Cell Borders on Excel Worksheet Cells - Java
// Directory path for output Excel file.
String dirPath = "D:\\Download\\";
// Create empty workbook object.
Workbook wb = new Workbook();
// Set the default style of the workbook.
Style defultStyle = wb.getDefaultStyle();
defultStyle.getFont().setName("Calibri");
defultStyle.getFont().setSize(11);
@AsposeCellsBlog
AsposeCellsBlog / Apply_Cell_Borders_on_Excel_Worksheet_Cells.cs
Last active October 12, 2018 12:26
Apply Cell Borders on Excel Worksheet Cells - C#
// Directory path for output Excel file.
String dirPath = "D:\\Download\\";
// Create empty workbook object.
Workbook wb = new Workbook();
// Set the default style of the workbook.
Style defultStyle = wb.DefaultStyle;
defultStyle.Font.Name = "Calibri";
defultStyle.Font.Size = 11;