Hi there , i've read your post and i think i am able to help you with your project , i have similiar experience in generating csv file and rearrange data , i also have server side experience , wondering if your server is a linux server or hosted under vendor. Let's further our discuss about this project :) Looking forward for your reply .