[英]Copy Excel worksheet from another file
I have an empty Excel worksheet with some cells being merged, custom width x height, etc. I am using EPPlus with C# to interact with Excel files.我有一个空的 Excel 工作表,其中包含一些正在合并的单元格、自定义宽度 x 高度等。我正在使用 EPPlus 和 C# 与 Excel 文件进行交互。 How do I achieve this: Copy the excel worksheet from that file as it is to another file, maintaining cells formatting and everything as it is?我如何实现这一点:将 Excel 工作表从该文件原样复制到另一个文件,保持单元格格式和所有内容原样?
In c# : use worksheet.copy as illustrated here: https://www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Cells/How-to-Duplicate-a-Row-in-Excel-in-C-VB.NET.html在 c# 中:使用 worksheet.copy,如下所示: https : //www.e-iceblue.com/Tutorials/Spire.XLS/Spire.XLS-Program-Guide/Cells/How-to-Duplicate-a-Row-in -Excel-in-C-VB.NET.html
In epplus: similarly, as described here: how to copy ExcelWorkSheet from template with new CodeModule在 epplus 中:类似,如下所述: how to copy ExcelWorkSheet from template with new CodeModule
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.