Hi,

Thanks for your reply.I have used header("Content-type: application/csv");