Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

同一个文件导入每次读取到不同的条数 #2

Open
KasimYe opened this issue Nov 8, 2023 · 0 comments
Open

同一个文件导入每次读取到不同的条数 #2

KasimYe opened this issue Nov 8, 2023 · 0 comments

Comments

@KasimYe
Copy link

KasimYe commented Nov 8, 2023

            Importer import = new Importer();
            var ext = Path.GetExtension(file1);
            if (ext.Equals(".xlsx", StringComparison.OrdinalIgnoreCase))
            {
                import.LoadXlsx(File.ReadAllBytes(file1));
            }
            else
            {
                import.LoadXls(File.ReadAllBytes(file1));
            }
            var importOption = new ImportOption<Service1Dto1>(0, 0);
            var result = import.Process<Service1Dto1>(importOption).ToList();
            Console.Write($"read rows:{result.Count}");

无法完整读取Excel数据
Snipaste_2023-11-09_00-00-48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant