roa.length is coming 0 while XLSX file having data #776
Labels
No Label
DBF
Dates
Defined Names
Features
Formula
HTML
Images
Infrastructure
Integration
International
ODS
Operations
Performance
PivotTables
Pro
Protection
Read Bug
SSF
SYLK
Style
Write Bug
good first issue
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: sheetjs/sheetjs#776
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hi Expert, I am trying to do client side validation for excel sheet. I am using MVC .net project . I am using Jquery 3.1.1 is my client side validation.
Step 1. Under document.ready
$('#flWarrantyProduct').change(handleFile);
Step 2.
Now, It is not going under if (roa.length > 0) beacuse roa.length is coming 0.
I am stuck in here.
Can you please help me.
If I am using 'base64' in this below line
var workbook = XLSX.read(data, { type: 'binary' });
I am getting data but not human readable.
First: You are using
readAsDataURL
. See https://github.com/SheetJS/js-xlsx/issues/535#issuecomment-281454900 for a comment on how to handle it, but you are better off switching toreadAsBinaryString
orreadAsArrayBuffer
.Second: Assuming the file is properly parsed, if your worksheet starts with an empty row or a weird title cell, the
sheet_to_json
utility may not find your data table. Try generating an array of arrays:Thanks reviewher,
I have changed my code but not able to get column wise data. ( Like A2, A3, B2, B3). How can we track data is coming from which column? I have changed my code in following way.
Pass the option
header: 1
to get the raw values from the worksheet. If the cells in the range are empty, useupdate_sheet_range
to recalculate worksheet range.If the worksheet is still empty, pass the option
WTF: 1
to see if there are errors.Please reopen the issue if this persists.