Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

1+1 = 10 #257

@samuelgmartins

Description

@samuelgmartins
$objPHPExcel->getActiveSheet()->setCellValue('A1', 'Teste 1')
                              ->setCellValue('B1', '=2*5')
                              ->setCellValue('C1', '=1+1');
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'HTML');
$objWriter->save('php://output');

returns
Teste 1 10 10


The problem is in the cache control when writing HTML.
The function getCoordinate() returns the last location in the cache (_currentObjectID) and not the current cell.
I managed to solve the function "_genererateRow" in "Writer/HTML.php" line in 1112, but this is not the ultimate solution.

// Write cells
$colNum = 0;
foreach ($pValues as $cell) {
                $pSheet->getCellByColumnAndRow($colNum, $pRow);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions