спасибо! Блин уже час бьюсь не могу понять почему бордер для всей таблицы не ставится. Нужно чтобыбордер применился ко всей таблицы
| Код | <?php
// register PHPRtfLite class loader require '../lib/PHPRtfLite.php';
PHPRtfLite::registerAutoloader(); $rtf = new PHPRtfLite(); $sect = $rtf->addSection();
$table = $sect->addTable();
$table->addRows(6, 5); $table->addColumnsList(array(3, 3, 3, 3, 3));
//$table->mergeCellRange(1, 1, 3, 1); $table->writeToCell(1, 1, 'Vertical merged cells.', new PHPRtfLite_Font(), new PHPRtfLite_ParFormat()); $border = PHPRtfLite_Border::create(1, '#000000'); $table->setBorderForCellRange($border,3,3,3,3);
// send to browser $rtf->sendRtf('megfdrged_cells.rtf'); ?>
|
|