Export to GitHub

php-excel - issue #6

PHP excel xml report creating using loops


Posted on Aug 5, 2007 by Grumpy Bear

hello, First, i want to thanks for author for very usefull code :). I sow problem and can't fix it.

when i use loop like this for ($i=1; $i<5; $i++){ echo"<Row><Cell ss:StyleID=\"s52\"><Data ss:Type=\"String\"> </Data><NamedCell ss:Name=\"Print_Area\"/>$i</Cell></Row>"; } everthing generate ok, but if i use

for ($i=1; $i<11; $i++){ echo"<Row><Cell ss:StyleID=\"s52\"><Data ss:Type=\"String\"> </Data><NamedCell ss:Name=\"Print_Area\"/>$i</Cell></Row>"; } everthing is stoping and broke excel report generation. How need to fix it?

please help..

thanks in advance

Comment #1

Posted on Sep 10, 2009 by Swift Horse

I am really sorry, but generally by using the library you should not need to echo the rows yourself. How do you create this problem or better: In which contexts is the problem created.

In the library I wanted to avoid using set fields like NamedCell or attributes like ss:StyleID (this should be done afterwards manually).

How can I help you in this?

Status: Invalid

Labels:
Type-Defect Priority-Medium