I have write a coding to generate the report from MYsql DB.

But I have retrieved the data from the MYsql database is less than a minutes. But I have present the data in excel take 30 minutes. How to avoid this.
I need to present the data in single shot not the row by row.
Is it possible how?

Murugavel S