Skip to content

sheet页的默认选中索引有问题 #312

Open
@Walnutr

Description

@Walnutr

Example: Magicodes.IE.Excel 2.5.4 core 2.5.4
当我一个excel里包含多个sheet页,想要设置后面的一个sheet页为默认显示时,sheet页的索引为2,但是设置之后默认显示的是索引值的前一位

using (var pck = new ExcelPackage(new FileInfo(info.FileName)))
{
pck.Workbook.Worksheets.AsQueryable().Where(c=>c.Index== 2).SingleOrDefault().Select();
pck.Save();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdiscussion讨论

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions