Skip to content

Conditional formatting not getting copied with Copy funciton #2381

@ykgw-shashikumar

Description

@ykgw-shashikumar

EPPlus usage

Commercial use (I have a commercial license)

Environment

Windows 11, Ubuntu 16

Epplus version

7.1.2, 7.5.0, 8.6.0

Spreadsheet application

Excel from "C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE"

Description

Hi Team,

We have noticed 1 issue with respect to conditional formatting, that seems to be working in older version like 7.5.0 and it is not working in latest 8.6.0.
After copying the template sheet , in copied sheets of new workbook conditional formatting is lost.

Code:
for (int i = 1; i <= copyCount; i++)
{
package.Workbook.Worksheets.Copy(
sourceSheet.Name, $"{sheetName}_{i}");
}

Attached is the template and copied sheets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions