EPPlus icon indicating copy to clipboard operation
EPPlus copied to clipboard

Support for copying 'What-if Analysis' Data Table {TABLE()} functionality between workbooks?

Open ses4j opened this issue 2 years ago • 2 comments

Hi -

I have a use case where I need to copy Excel sheets from one workbook to another, and preserve everything. It works quite well, using:

outputPackage.Workbook.Worksheets.Add(workSheetName, sourceSheet);  

However, it makes use of a somewhat-obscure feature:

image

in the source cell it looks like

image

but in the output cell it has lost the TABLE() and is just a calculated result.

Is there anything I can do? Is this something that can be supported?

Thanks!!

ses4j avatar Jun 21 '22 14:06 ses4j

Hello, EPPlus currently don't support the forumula type "dataTable", so we will have to implement it. I'll see if I can add it to the next version.

JanKallman avatar Jun 22 '22 07:06 JanKallman

EPPlus 6.1.1. will preserve attributes used by the Table function

JanKallman avatar Nov 22 '22 10:11 JanKallman