Skip to content

convert rangeToArray output to HTML #1640

Closed
@shamloo

Description

@shamloo

Hello
I want to read an Excel file and get a range from that , then convert it to html.

$data_array = $spreadsheet->setActiveSheetIndex(0)->rangeToArray("A1:H23");

how to convert $data_array to HTML?
like below sample:

$objWriter = IOFactory::createWriter($spreadsheet, 'Html');

$objWriter->writeAllSheets();

$objWriter->save('php://output');

but this output all excel file not the selected range

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