We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("ProductCode", typeof(string))); dt.Columns.Add(new DataColumn("ProductName", typeof(string))); dt.Columns.Add(new DataColumn("Quantity", typeof(string))); for (int i = 0; i < 10; i++) { var row = dt.NewRow(); row["ProductCode"] = "ProductCode" + i.ToString(); row["ProductName"] = "ProductName" + i.ToString(); row["Quantity"] = "Quantity" + i.ToString(); dt.Rows.Add(row); } IExcelExporter excelExporter = new ExcelExporter(); //设置IExporterHeaderFilter为null无效 var res = await excelExporter.ExportAsByteArray(dt,null); return new FileStreamResult(new MemoryStream(res), "application/octet-stream") { FileDownloadName = $"{DateTime.Now.ToString("yyyyMMdd")}.xlsx" };
还是有筛选器
The text was updated successfully, but these errors were encountered:
No branches or pull requests
还是有筛选器
The text was updated successfully, but these errors were encountered: