Issue Description
The csv() method in the DataTable class calls buildExcelFile() twice, which introduces unnecessary processing.
Steps to Reproduce
- Observe the redundant call to
buildExcelFile() in the code.
Expected Behavior
The method should call buildExcelFile() only once and reuse the result.