Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
webERP and Excel
08-12-2014, 06:43 PM,
#3
RE: webERP and Excel
Hi, Andrew,

If we only need to export an excel file, the class seems overkill.

You can directly transfer html files to excel files. It's fast and simple. I think there is a thread from Tim that he has show an example. You can find it in the forum.
The code looks like this:

function headExcel($Html){
$file="test.xls";// the file to download
header("Content-type: application/vnd.ms-excel;charset=utf-8");
header("Content-Disposition: attachment; filename=$file");
$Html = chr(239).chr(187). chr(191).$Html;//make the file charset to be utf8;
echo $Html;//the html string to convert to excel file

}
Best regards!

Exson



Reply


Messages In This Thread
webERP and Excel - by PakRicard - 08-07-2014, 07:13 PM
RE: webERP and Excel - by phil - 08-08-2014, 11:41 AM
RE: webERP and Excel - by Exsonqu_Qu - 08-12-2014, 06:43 PM
RE: webERP and Excel - by kelo - 08-21-2014, 02:45 PM
RE: webERP and Excel - by PakRicard - 08-30-2014, 04:58 PM
RE: webERP and Excel - by kelo - 09-23-2014, 02:42 AM
RE: webERP and Excel - by agaluski - 01-30-2015, 12:34 AM
RE: webERP and Excel - by phil - 01-30-2015, 07:55 AM
RE: webERP and Excel - by PakRicard - 03-31-2015, 07:13 PM
RE: webERP and Excel - by phil - 04-01-2015, 09:42 AM
RE: webERP and Excel - by Exsonqu_Qu - 04-01-2015, 11:44 AM
RE: webERP and Excel - by PakRicard - 04-01-2015, 01:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)