【问题标题】:Trying to create an excel page using asp.net core 2.0尝试使用 asp.net core 2.0 创建一个 excel 页面
【发布时间】:2018-11-13 12:34:31
【问题描述】:

帮助,我被要求这样做“使用 asp.net 核心创建一个 excel 文件”.. n.b 我刚刚开始使用 asp.net core

【问题讨论】:

  • 从谷歌搜索 EPPlus 开始。

标签: c# asp.net excel asp.net-core


【解决方案1】:

同意 VDWWD,更简单的方法是使用 EPPlus 包。你可以在相应的 github 上找到很多关于如何使用这个库的例子: https://github.com/JanKallman/EPPlus/tree/master/SampleApp(查看 Sample*.cs 文件)

当您有更精确的问题时,请在 StackOverflow 上重新创建一个新问题 ^^

【讨论】:

  • 我忘了说 EPPlus 很容易通过 nuget 包直接找到。
【解决方案2】:

如果您只想创建一个可以在 Excel 中打开的文件,更简单的方法是 csvhelper https://joshclose.github.io/CsvHelper/ o linq2excel https://github.com/mperdeck/LINQtoCSV 如果您需要更复杂的东西,那么是的,EPplus 是您的最佳选择。

【讨论】:

    猜你喜欢
    • 2018-05-09
    • 2018-01-26
    • 2018-01-31
    • 1970-01-01
    • 2012-06-02
    • 2021-03-17
    • 1970-01-01
    • 2021-11-30
    • 1970-01-01
    相关资源
    最近更新 更多