Problem with ZZPHPExe

7 views
Skip to first unread message

phg

unread,
Oct 25, 2009, 1:27:54 PM10/25/09
to ZZEE PHPExe
Hello,

I trie to generate an EXCEL sheet in a compiled Application.

When I trie this from the Internet all is running ok.

I use this headers:

header("Content-type: application/vnd-ms-excel");
header("Content-Disposition: attachment; filename=wochenplan.xls");

When I start the compiled application and I trie to save then I get
the message, that the Program cannot read from the source.

What can I do.

Thanks for yout help

phg

Paul (ZZEE)

unread,
Oct 25, 2009, 6:30:40 PM10/25/09
to php...@googlegroups.com
> I use this headers:
>
> header("Content-type: application/vnd-ms-excel");
> header("Content-Disposition: attachment; filename=wochenplan.xls");
>
> When I start the compiled application and I trie to save then I get
> the message, that the Program cannot read from the source.

1. At which point you get this error message? Which part of the
application issues it? Make sure that "application/vnd-ms-excel" is in the
list of cached MIME types in Webbrowser > File caching, and "Allow file
caching" is set to "Allow only for MIME types specified below".

2. In ZPE you can save it directly to disk. There is no need to "download"
it, as this can be confusing to the end user - to download something from
a Windows program. If you save it directly to disk, then you can launch it
automatically in Excel with Javascript command

external.ShellExecute(external.HWND, 'open', excelFilePath, '', '',
SW_SHOWNORMAL);


Reply all
Reply to author
Forward
0 new messages