using System; using System.Text; using System.IO; using NPOI.HSSF.UserModel; using NPOI.HPSF; using NPOI.POIFS.FileSystem; using NPOI.SS.UserModel; namespace SetAlignmentInXls { class Program { static void Main(string[] args) { InitializeWorkbook(); Sheet sheet1 = hssfworkbook.CreateSheet("Sheet1"); //set the column width respectively sheet1.SetColumnWidth(0, 3000); sheet1.SetColumnWidth(1, 3000); sheet1.SetColumnWidth(2, 3000); for (int i = 1; i <= 10; i++) { //create the row Row row = sheet1.CreateRow(i); //set height of the row row.HeightInPoints = 100; //create the first cell row.CreateCell(0).SetCellValue("Left"); CellStyle styleL