Closed WSF-SEO-AM closed 2 months ago
The worksheet.previous_row
property is an internal property and shouldn't be accessed by the end user. In fact it generally doesn't contain useful information, as you've seen.
Instead the user should track the last row written themselves.
Current behavior
I've to admit that this is not a native approach based on the configuration, but traces in the code suggest that property to store that value. However, by the time _write_single_row is invoked (and apparently almost all methods reach that function), the self.previous_row is reset to 0 unless the row number is passed as an external argument.
Expected behavior
Previous_row to hold the number of the last line where data were written.
Sample code to reproduce
Environment
Any other information
No response
OpenOffice and LibreOffice users