How can one remove a row, or a number of rows in PHPExcel (1.7.7) such that the getHighestDataRow value is decremented?
Usage of removeRow() does not seem to actually adjust the getHighestDataRow value.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Correct, it doesn’t. You’ll notice that the same applies to columns as well.
Either do it yourself, or ask the library authors to fix this bug in PHPExcel. It’s known, but low down on their priority list, so a further request to fix it might boost it up that list.
For an existing work item, see “Trailing empty rows remain after removeRow()“. The issue described is more specific, but the cause is the same.