I have a Export class using FrowView (blade table). And I want to put an 'all borders' to every rows and columns so that all the exported data have a border and forming a table. My data have a dynamic number of rows and columns.
Does Laravel-Excel have a method to get the highest row and column (ex: "A2:AG12") so that I don't need to create a logic to get the excel's column name and do a join query on my repository to get the row num?
Any help would be very appreciated! Thanks.
Only single sheet need to be exported.
Update: i've found a way to get string from index manually using query to determine the index value in integer:
\PhpOffice\PhpSpreadsheet\Cell\Coordinate::stringFromColumnIndex($index);
In AfterSheet event:
$sheet->getDelegate()->getHighestRow()
$sheet->getDelegate()-> getHighestColumn();
You're my hero! Thanks a lot!