1

I am trying to create a PDF document using PHPexcel and mPDF as rendering engine.It generates an error "This PDF document might not be viewed correctly" when using the following code to merge cells.

 $objPHPExcel->getActiveSheet()->mergeCells('A1:A3'); 

Has anybody experienced this error?

Simmy

1 Answer 1

1

Quick and Dirty fix;

Change line 1236 of PHPExcel/Writer/HTML.php, which reads:

$cssClass .= ' style' . $pSheet->getCell($endCellCoord)->getXfIndex(); 

to

if (!$this->_useInlineCss) { $cssClass .= ' style' . $pSheet->getCell($endCellCoord)->getXfIndex(); } 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.