【发布时间】:2016-09-21 18:43:40
【问题描述】:
我想读取和写入扩展名为 .xls 和 .xlsx 的 excel 文件(从任何 Office 版本生成,例如 Office 2003、Office 2016)。
我已经使用 office interop 读写 Excel,它在本地环境中运行良好,但是一旦我托管在 Azure Cloud Service Worker Role 上,它就无法正常工作(需要 office interop 依赖项)。
请建议我在 Azure 环境中不依赖于读写 excel 的最佳方法?
【问题讨论】:
-
你用过 EPPLus 库吗? epplus.codeplex.com
-
您是否将 Office 互操作 dll 标记为复制本地?您还需要考虑这些 dll 中的许可要求。
标签: c# excel azure azure-worker-roles azure-cloud-services