如何使用EPPlus设置XLSX像元宽度?
您好,我有这段代码在其中创建一个xlsx文件,并且我需要预先设置xlsx工作表单元格的宽度。实际的问题是,当我打开excell时,我需要用鼠标双击列之间的间隙以展开列并重新显示隐藏的数据。有没有办法用Epplus以编程方式执行此操作? using (ExcelPackage p = new ExcelPackage()) { String filepath = "C://StatsYellowPages.csv"; DataSet ds = ExportCSVFileToDataset(filepath, "tblCustomers", "\t"); //Here setting some document properties p.Workbook.Properties.Title = "StatsYellowPages"; //Create a sheet p.Workbook.Worksheets.Add("Sample WorkSheet"); ExcelWorksheet ws = p.Workbook.Worksheets[1]; ws.Name = "StatsYellowPages"; //Setting Sheet's name //Merging cells and create a center heading for out …