Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
Don't ask to ask, just ask
 
PerlMonks  

Re: Launching Excel from a CGI

by rashley (Scribe)
on Oct 30, 2006 at 13:46 UTC ( [id://581360]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 14: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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://581360]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.