-
-
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
Improve documentation regarding !ref #82
Comments
I ran your script against a really dumb template and it took roughly 2 minutes:
This is the generated file -- I warn you, it is big! The file is 262.5MB, which may explain why you are seeing issues? On a side note, it took more time to upload to dropbox than to generate the file. Can you test the following:
Also, can you share the template? |
Thank you , it's ok now with the line you added. |
If this explanation makes sense, I'll add it to the readme: The keys of a worksheet object are A-1 style references to the cell. For example, to get the cell object for B2, you would just access There are special keys (all starting with
I suspect your template had 20000 rows (or at least, that was the internal range storage). Your original script added cells but didn't update the range, which is why the output functions ignored them. If you want to see the range from your template, print it in the script:
|
awesome! |
@lszhu heh if you think this is complex, the XLS parsing is much more intense |
@lszhu added a short explanation of |
I am trying to convert html table to xls and its getting converted to xsl successfully. However, I am facing issues with formula. Formula in the html table is not visible in xsl file, I just see a value at the place of formula. Refering this example https://github.com/SheetJS/js-xlsx/blob/master/tests/write.js , it doesn't have any implementation for cell formula in xlsx spreadsheet I tried using cell.f = "=SUM(A1+B1)" for the cell C1 and cell.v as the summation value which was 3. But i didn't succeed. With the exported file, when opened in MS excel, the cell contained just the data and when selected, didn't show any formula which i assigned in f(x) field. Can someone post me a example which actually uses the functions/property '.f' and 'cellFormula' |
@vikash52 did you solve the issue or find a way to solve it |
@SheetJSDev |
@Crusader4Christ AW100000 is the cell in the 49th column and 100000th row: > XLSX.utils.decode_range("A1:AW100000")
{ s: { c: 0, r: 0 }, e: { c: 48, r: 99999 } } The original case from @lszhu used 100k rows and 49 columns, but since the original file specified a range of 20000 cells the rest were omitted. The range needs to be changed since the writer won't include cells outside of the worksheet's range. The wiki includes some examples of how to update the range: https://github.com/SheetJS/js-xlsx/wiki/General-Utility-Functions |
@reviewher So, if I need to work with OO Calc xlsx bigger than 65536 rows I should use |
@Crusader4Christ if you don't know the bottom-right address, If you do know that address, var nrows = 100000;
var ncols = 49;
var bottom_right_cell_address = XLSX.utils.encode_cell({r:nrows-1, c:ncols-1});
add_to_sheet(ws, bottom_right_cell_address); |
when I create a sheet with 49 columns, it can only fill the first 20000 rows.
this is the code:
The text was updated successfully, but these errors were encountered: