RE: Re: Exporting HTML to Excel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Philip Thompson wrote:
> 
> > -------------
> > <?php
> > header('Content-Type: application/ms-excel');
> > header('Content-Disposition: attachment; filename="project.xls"');
> > ?>
> > 
> > <table>
> >     <tr>
> >         <td>Something</td>
> >         </td>Something else</td>
> >     </tr>
> > </table>
> > -------------
> > 
> > I just want it to have that content in the spreadsheet. 
> 
> Works for me... (Excel 2000)
> "Something" appears in A1
> "Something Else" appears in B1.

Worked for me too.. Even though I didn't think it would :)  Seemed too
simple.

I'm running Excel 2002.

-TG

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux