简体   繁体   English

可以自动拆分较大的excel文件吗?

[英]Possible to split up a large excel file automatically?

Is it possible to split up a large excel file automatically when it gets placed to a specific directory? 将大型excel文件放入特定目录后,是否可以自动将其拆分? Is there a script that can run in the background that would accomplish this goal? 是否存在可以在后台运行以实现该目标的脚本?

I would need this file split up by filtering the data within the excel workbook. 我需要通过过滤excel工作簿中的数据来拆分此文件。

Using C# (or any .Net language) you can access the FileSystemWatcher component that will notify of any change in the directory. 使用C# (或任何.Net语言),您可以访问FileSystemWatcher组件,该组件将通知目录中的任何更改。

Then you can split your file using any Excel interop API, like the standard one provided by PIAs (but you'll need Excel installed on the server running your deamon) or a file-only API like NPOI (.Net port of Apache POI ) : http://npoi.codeplex.com/ . 然后,您可以使用任何Excel互操作API拆分文件,例如PIA提供的标准API(但您需要在运行deamon的服务器上安装Excel)或仅文件的API(例如NPOIApache POI的 .Net端口)) : http : //npoi.codeplex.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM