Facing Issue in setting row height for image #4138
Unanswered
Pranathi-v21
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am trying to download an excel with an image and the images are getting overlapped, i want to set row height for all the rows
My code is:
public function registerEvents(): array
{
return [
AfterSheet::class => function (AfterSheet $event) {
foreach ($this->orderData as $index => $orderItem) {
$rowIndex = $index + 2;
$event->sheet->getDelegate()->getRowDimension($rowIndex)->setRowHeight(100);
}
},
];
}
Can anyone help me in fixing the code?
Beta Was this translation helpful? Give feedback.
All reactions