Skip to content

setRowHeight from getDefaultRowDimension not working with data has wrapText #4584

@ckan719

Description

@ckan719

I use $sheetEdit->getDefaultRowDimension()->setRowHeight(15); but it is not working when data has wrapText, so i use

for ($row = 1; $row <= $highestRow; $row++) {
    $sheetEdit->getRowDimension($row)->setRowHeight(15);
}

as an alternative. But it is very memory consuming if the number of rows is large. Is there any solution to fix this problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions