Trying to export a gridView content to excel, while executing EP from the client machine

I’m trying to export the content of my gridView to excel, as i’m working with User controls (Visual studio), SharePoint(WSS) and Axapta 2009. I’ve written a custom code in X++ which does it well when I’m on the developing server. But nothing happens when I try to fire the export button from the windows machine . Can you help me fix this problem please?

Thanks.