-
-
Notifications
You must be signed in to change notification settings - Fork 8k
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
How to get first 5 rows of each sheet? #1225
Comments
The let workbook = xlsx.readFile(path, {sheetRows: 5}); |
@SheetJSDev Thanks!! |
@SheetJSDev Hi, I have one issue here. So for example, if the file size is too large like around 500Mb or more and I just want to read only like top 5 or 10 lines then, in this case, I can use sheetRows property with the read method but before that, I will read.xlsx file using FileReader as array buffer but because the file size is too large it crashing my browser or taking more than 30 minutes so how can I handle this issue. If I am trying to slice .xlsx file using slice method of a blob then it is causing this error while reading Error: Corrupted zip: can't find end of central directory |
@SheetJSDev This Thanks in advance. |
how can I get first 5 rows of a sheet? Right now I am using the following code which gives me whole file content in arrays.
Thanks in advance.
The text was updated successfully, but these errors were encountered: