mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-15 14:15:54 -06:00
[GH-ISSUE #74] Worksheet row or column index out of range Error #62
Labels
No labels
awaiting user feedback
bug
cmake
cmake
docs
feature request
in progress
long term
medium term
medium term
pull-request
question
question
ready to close
short term
under investigation
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/libxlsxwriter#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @aherle on GitHub (Oct 26, 2016).
Original GitHub issue: https://github.com/jmcnamara/libxlsxwriter/issues/74
I am getting
Worksheet row or column index out of rangewhen I tried to Write a cell.What is the reason for above mentioned behavour ?
What are cases or possibilities which can result in
Worksheet row or column index out of range Error?@jmcnamara commented on GitHub (Oct 26, 2016):
Hi Ankith,
Could you add a small, complete, working example that demonstrates the issue.
John
@aherle commented on GitHub (Oct 26, 2016):
Thanks for replying.
I will update the issue description.
@aherle commented on GitHub (Oct 26, 2016):
@jmcnamara Updated the issue description, please check.
@jmcnamara commented on GitHub (Oct 26, 2016):
@ankithherle What I really need is a small example program that demostrates the issue.
Like this:
Also, let me know the version printed out from the example on your system.
See also Report Bugs in libxlsxwriter.
@aherle commented on GitHub (Oct 26, 2016):
@jmcnamara
Sample code from which Error is generated
@aherle commented on GitHub (Oct 26, 2016):
@jmcnamara I am using latest version of
libxlsxwriterlibrary.Link to file which contains output printed on terminal:
Error displayed.txt
Link to Sample xlsx file genrated:
https://drive.google.com/open?id=0B4rT-3u4TZHkZG92OC1kakxjaW8
Look into this.
@jmcnamara commented on GitHub (Oct 26, 2016):
@ankithherle
Thanks for the example. In general output files aren't useful but the programs that generate them are.
The issue here is that you are using
constant_memoryoption and in that mode the cell data must be written in row x column order or else the data will be ignore.This is explained in the docs in Constant Memory Mode and also in the section on
workbook_new_opt().The solution is to not use constant memory mode or else structure your code so the data is written in row x column order. In your example, switching the order of the for loops will help but you will also have to move the
write_blank()calls.@aherle commented on GitHub (Oct 26, 2016):
Issue is resolved after I removed
constant_memory. Thank you @jmcnamara .