摘要:
using OfficeOpenXml; using OfficeOpenXml.Style; 阅读全文
posted @ 2023-03-09 14:10
岑惜
阅读(25)
评论(0)
推荐(0)
摘要:
public static bool delFile(FileInfo file, string url) { try { if (file == null) { file = new FileInfo(url); } if (!file.Exists) { return true; } file. 阅读全文
posted @ 2023-03-09 14:08
岑惜
阅读(451)
评论(0)
推荐(0)
摘要:
//需要文件字节流、带后缀的文件名,mine类型public static void exportFile(byte[] data, string fileName, string mine) { HttpContext.Current.Response.Clear(); HttpContext.C 阅读全文
posted @ 2023-03-09 14:06
岑惜
阅读(76)
评论(0)
推荐(0)
摘要:
FileStream fs = new FileStream(fileUrl, FileMode.Open); byte[] data = new byte[fs.Length]; fs.Read(data, 0, data.Length); fs.Close(); 这个 data 就是字节流数据 阅读全文
posted @ 2023-03-09 14:05
岑惜
阅读(638)
评论(0)
推荐(0)
摘要:
依赖使用 using Aspose.Words; using Aspose.Words.Tables; 打开表格 Document doc = new Document("文件路径"); //选中第一个表格 Table table = (Table) doc.GetChild(NodeType.Ta 阅读全文
posted @ 2023-03-09 14:04
岑惜
阅读(177)
评论(0)
推荐(0)

浙公网安备 33010602011771号