Login   Register  
PHP Classes
elePHPant
Icontem

Cells

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MsDoc Generator  >  All threads  >  Cells  >  (Un) Subscribe thread alerts  
Subject:Cells
Summary:merge cells in a table
Messages:3
Author:nunux
Date:2009-03-09 01:32:25
Update:2010-08-06 22:38:34
 

  1. Cells   Reply  
Picture of nunux
nunux
2009-03-09 01:32:25
Hi!
First, thank to you for this class!
I would like to know if it's possible to merge two cells in a table? (option colspan)
thank's

  2. Re: Cells   Reply  
Picture of Chris Brett
Chris Brett
2010-08-06 02:02:17 - In reply to message 1 from nunux
I really want to know how to do this too!

  3. Re: Cells   Reply  
Picture of Chris Brett
Chris Brett
2010-08-06 22:38:34 - In reply to message 1 from nunux
I've worked out that this can be achieved by simply using HTML tags to create the table. e.g.

$doc->StartTable();
$table =array();
$table[] ="
<table>
<tr>
<td>Row1 ColA</td>
<td>Row1 ColB</td>
<td>Row1 ColC</td>
</tr>
<tr>
<td colspan='3'>Row2 ColA</td>
</tr>
</table>
";
$doc->addTableRow($table);
$doc->endTable();