11 2019 档案

摘要:转自 https://www.cnblogs.com/Leo_wl/p/3866625.html,再次感谢 指定的目录或文件在 Web 服务器上不存在。 URL 拼写错误。 某个自定义筛选器或模块(如 URLScan)限制了对该文件的访问。 解决方法: 返回的错误表明IIS缺少针对无后缀的MVC请求 阅读全文
posted @ 2019-11-25 14:22 PrintY 阅读(927) 评论(0) 推荐(0) 编辑
摘要:using Excel = Microsoft.Office.Interop.Excel; Excel.Application excelapp = new Excel.Application(); Excel.Workbook wb = excelapp.Workbooks.Open(excelP 阅读全文
posted @ 2019-11-20 10:58 PrintY 阅读(854) 评论(0) 推荐(0) 编辑
摘要:1 string filePath = @"C:\Users\yangqinglin\Desktop\test.xlsx"; 2 IWorkbook wk = null; 3 string extension = System.IO.Path.GetExtension(filePath); 4 FileStream fs = File.OpenRead(filePath); 5 if (exten 阅读全文
posted @ 2019-11-20 10:41 PrintY 阅读(1735) 评论(0) 推荐(0) 编辑
摘要:1 IWorkbook workbook = new XSSFWorkbook(); 2 ISheet sheet = workbook.CreateSheet("-"); 3 IRow row = sheet.CreateRow(0);//标题 4 5 IRow titleRow = row.CreateCell(0); 6 Row.SetCellValue("标题列1"); 7 8 IRow 阅读全文
posted @ 2019-11-20 09:33 PrintY 阅读(1280) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示