I want to know if we can use the following http headers to generate word and excel files in Exeoutput for php:
If not, what is the alternate method, if any, in exeoutput for php.
Awaiting your kind reply,
If you want to generate Word and Excel files from your PHP application, I recommend you this:
use the standard Save As dialog box functions provided by ExeOutput to ask your user where he wants to save the XLS / DOC file: don’t try to send custom headers to the browser to trigger a download window, it won’t work.
Study this article: http://www.exeoutput.com/help/savedialogbox
The standard Save As dialog box will return the path to the file chosen by the user. Just use this full path to generate the XLS / DOC file as usual with your PHP code.
It’s a different way than sending data to the browser: you send it to a file.