Turn off XLS output if number of written rows exceeds MAX_ROWS

xref #34
xref #54