Skip to content
New issue

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 的excel格式含有表格,跟集合导出有区别 #533

Open
MonsterUncle opened this issue Sep 27, 2023 · 0 comments
Open

Comments

@MonsterUncle
Copy link

public async Task<FileStreamResult> Export(DataTable data, string fileName)
{
    IExcelExporter exporter = new ExcelExporter();
    var byteArray = await exporter.ExportAsByteArray(data);
    var result = GetFileStreamResult(byteArray, fileName);
    return result;
}

使用如上代码导出的excel是含有表格的,能不能把表格取消改成普通区域,这样方便用户直接操作excel

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant