-
22-12-2009, 06:10 #1
new member
- Join Date
- Dec 2009
- Posts
- 7
export reports as .csv file in browsers computer
Hi all,
I had generated backend reports as tables. now i have to give the option to export that table. Already im using manual code to export data as .csv file . But the pbm is, this report is getting stored in server itself ( same folder where the code is). but i need some code to save file in client (user ) mechine.
some one plz help.
-
23-12-2009, 00:22 #2
Hi
It is actually surprisingly easy to do
echo out the above and then just echo the csv file contents and hey presto - one csv (called My.csv) will be downloaded to the users computerPHP Code:header( "Content-type: application/octet-stream");
header( "Content-disposition: attachment; filename=My.csv");
Hope this helpsDavid Allen - www.serina.co.uk
-
23-12-2009, 04:54 #3
new member
- Join Date
- Dec 2009
- Posts
- 7
Ya its woking fine. thanks for help...
But, one more problem,is
Generally, the popup will ask us three option ==> open, save, cancel.
But this popup asks ==> Find, save, Cancel
Why ? Can u explain me plz !
-
23-12-2009, 09:40 #4
-
23-12-2009, 09:45 #5
new member
- Join Date
- Dec 2009
- Posts
- 7
Great, thanks for help
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)


LinkBack URL
About LinkBacks



Reply With Quote



You here anything back about the banner on the right ? Tis driving me nuts having nothing but white...
Anyone else having issues on the...