PDA

View Full Version : Opening a CSV with Excel in Internet Explorer


ibanez270dx
06-06-2008, 09:01 PM
Hello,
I have a program that creates a CSV for a client, but I would like it to open in Internet Explorer with Excel. Using <a href="../reports/report.csv"> just opens the CSV as text. Is there a special tag or something I can add to ensure that it opens with the Excel plugin for IE?

Thanks,
- Jeff

Len Whistler
06-06-2008, 11:20 PM
I would use php to loop through the CSV file. The explode function would separate all the values into an array and the implode function would take the array and output it into a table for you.


-------