-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
RemoveRow can not remove the last row|RemoveRow 无法删除最后一行 #686
Comments
I add a fix #687 |
10 tasks
Hi @liserjrqlxue, thanks for your issue and contribution. Could you provide a spreadsheet xlsx attachment without confidential info? I need to investigate more details about this issue. |
xuri
pushed a commit
that referenced
this issue
Aug 14, 2020
Thanks for your PR. |
nullfy
pushed a commit
to nullfy/excelize
that referenced
this issue
Oct 23, 2020
fix Hyperlinks update error
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
RemoveRow
can not remove the last row|RemoveRow
无法删除最后一行:RemoveRow(sheetName,0)
report error:invalid row number 0 []
RemoveRow(sheetName,i+1)
remove thei+1
th row asrows[i]
fromGetRows(sheetName)
RemoveRow(sheetName,len(row))
report error :slice bounds out of range [94:93]
(94:93 is example)Steps to reproduce the issue:
var excel,err1=excelize.OpenFile(excelFile)
var rows,err2=excel.GetRows(sheetName)
excel.RemoveRow(sheetName,len(rows))
Describe the results you received:
Describe the results you expected:
RemoveRow(sheetName,len(rows))
remove thelen(rows)
th row (the last row) asrows[len(rows)-1]
Output of
go version
:Excelize version or commit ID:
Environment details (OS, Microsoft Excel™ version, physical, etc.):
The text was updated successfully, but these errors were encountered: