Quantcast
Channel: PHPWord
Viewing all articles
Browse latest Browse all 450

New Post: Colspan and Rowspan

$
0
0
How to make that work colSpan:
Make it as it is written in a previous post

PHPWord\Writer\Word2007\Base.php

protected function _writeCellStyle

$brdCol = $style->getBorderColor();
after :$GridSpan = $style->getGridSpan();

....

$styles = (!is_null($bgColor) || !is_null($valign) || !is_null($textDir) || $borders) ? true : false;
after

if(!is_null($GridSpan)) {
            $objWriter->startElement('w:gridSpan');
                $objWriter->writeAttribute('w:val', $GridSpan);
            $objWriter->endElement();
    }
Sorry for bad English

Viewing all articles
Browse latest Browse all 450

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>