Could not open display (X-Server required. Check your DISPLAY environment variable)
at System.Drawing.Graphics.FromHwnd(IntPtr hwnd)
at NPOI.SS.Util.SheetUtil.getDefaultCharWidth(IWorkbook wb)
at NPOI.SS.Util.SheetUtil.GetColumnWidth(ISheet sheet, Int32 column, Boolean useMergedCells)
at NPOI.HSSF.UserModel.HSSFSheet.AutoSizeColumn(Int32 column, Boolean useMergedCells)
at NPOI.HSSF.UserModel.HSSFSheet.AutoSizeColumn(Int32 column)
Could not open display (X-Server required. Check your DISPLAY environment variable) at System.Drawing.Graphics.FromHwnd(IntPtr hwnd) at NPOI.SS.Util.SheetUtil.getDefaultCharWidth(IWorkbook wb) at NPOI.SS.Util.SheetUtil.GetColumnWidth(ISheet sheet, Int32 column, Boolean useMergedCells) at NPOI.HSSF.UserModel.HSSFSheet.AutoSizeColumn(Int32 column, Boolean useMergedCells) at NPOI.HSSF.UserModel.HSSFSheet.AutoSizeColumn(Int32 column)