Server cannot set content type after HTTP headers have been sent - Excel

Server cannot set content type after HTTP headers have been sent - Excel

  

Doing recordlist to excel and trying to download but receiving this message:

Server cannot set content type after HTTP headers have been sent.

Solution

Hi Vinicius,

You are probably trying a download in a Screen Action that is called from a Button or Link with Method Ajax Submit. This isn't possible (this is a limitation of HTTP). You need a Button with Method Submit (not Ajax).

Solution

Thanks @Kilian Hekhuis, i found the answer from my problem

Hi Hanafi,

Glad I could be of help :). Happy coding!