【问题标题】:convert excelsheet to work book in c#在c#中将excel工作表转换为工作簿
【发布时间】:2010-08-11 00:15:27
【问题描述】:

我在这个位置有三个类似这个地方的 excel 文件。

string  path1=@"D:\\report\test1.xls";
string  path2=@"D:\\report\test2.xls";
string  path3=@"D:\\report\test3.xls";

现在我需要将所有这些 excel 文件复制到 1 个工作簿中。并将工作簿保存在此 路径

字符串 strWorkPath=@"E:\report"; 谁能告诉我如何在 C# 中实现这一点,寻找一些可以帮助我的代码片段。 我是这个 excel 操作的新手。

任何帮助都会很棒。

谢谢

【问题讨论】:

标签: c#


【解决方案1】:

您需要使用 Excel 库,这里有一些如何使用的示例:

How to copy one worksheet to another WorkBook

Excel Copy WorkSheet Method

Excel Interop Use

【讨论】:

    猜你喜欢
    • 2017-11-18
    • 1970-01-01
    • 1970-01-01
    • 2021-08-26
    • 2019-10-26
    • 2017-08-16
    • 2018-04-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多