in reply to Launching Excel from a CGI

Ah, one hitch. As is, the default file name when you go to open/save it is the name of the CGI doing the work. How can I control that name?

Replies are listed 'Best First'.
Re^2: Launching Excel from a CGI
by derby (Abbot) on Oct 30, 2006 at 19:12 UTC

    Use something like LiveHTTPHeaders (or wget) to see if your Content-Disposition is being set correctly -- I haven't tested it but I think you may need to do Content_Disposition. Or just use the -attachment parameter:

    print $cgi->header( -type => 'application/vnd.ms-excel', -attachment => $file, -Content_Length => $filesize );

    -derby

    update: Either using -Content_Disposition or -attachment works for me.