Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: export a table to excel

by Caillte (Friar)
on Feb 26, 2002 at 17:05 UTC ( #147649=note: print w/ replies, xml ) Need Help??


in reply to Re: export a table to excel
in thread export a table to excel

When I had thsi problem on a linux system I used DBD::CSV to create a tab-seperated database and then used $cgi->redirect to change to it. Systems with Excel installed will treat files with a .csv extension as spreadsheets and convert them to Excel format when loading.

The only problem with this is it will only transmit data, no fancy formatting ;)

This page is intentionally left justified.


Comment on Re: Re: export a table to excel
Replies are listed 'Best First'.
Re: Re: Re: export a table to excel
by lachoy (Parson) on Feb 26, 2002 at 17:28 UTC

    Actually, you can really ensure the browser will send it to Excel by sending a content type of application/vnd.ms-excel, even for tab-delimited files. This has worked reliably for me across three versions of Excel.

    Chris
    M-x auto-bs-mode

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://147649]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2015-07-31 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls