You are here: Re: Excel PHP « PHP Programming Language « IT news, forums, messages
Re: Excel PHP

Posted by jodleren on 04/09/07 16:49

On Apr 9, 5:55 pm, trp...@gmail.com wrote:
> I am using a set of functions that seem to be pretty common for using
> an associative array to write data to an .XLS file. This work fine for
> the most part, however I have problems writting a number to Excel on a
> Solaris system, whereas it works fine on a Windows system using the
> same PHP version (5.05). I have isolated the code to the following
> function:

Not quite sure of this, but maybe this can help you:

$fExcel=fopen($excelfile, "w");
fwrite($fExcel, "<html><head><STYLE TYPE=\"text/css\">");
fwrite($fExcel, " <!-- .number2dec {mso-number-format: Fixed;} \r
\n");
fwrite($fExcel, " .number0dec {mso-number-format: 0\\;} -->\r\n");
fwrite($fExcel, "</STYLE></head><table border=1>\r\n");

fwrite($fExcel, "<tr><td class=number2dec>1.2

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация