Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

多个sheet设置 必须指定sheetName名称固定么 如果未知几个sheet如何判断 #254

Closed
44673626 opened this issue Mar 31, 2021 · 2 comments
Labels
area-excel excel enhancement New feature or request

Comments

@44673626
Copy link

如题,可否根据sheet的索引来查找呢,目前好像只支持指定sheetName名称

@xin-lai xin-lai added area-excel excel enhancement New feature or request labels Mar 31, 2021
hueifeng added a commit that referenced this issue Apr 17, 2021
@hueifeng
Copy link
Member

Now that this feature has been added, you can upgrade to the latest version.

dotnet add package Magicodes.IE.Excel --version 2.5.3.6

For example:

#if NET461
        [ExcelImporter(SheetIndex = 2)]
#else
        [ExcelImporter(SheetIndex = 1)]
#endif
        public ImportPaymentLogDto Class2Students { get; set; }

@44673626
Copy link
Author

非常感谢

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
area-excel excel enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants