[Bug]: #3841
Unanswered
VibhorAecor
asked this question in
Q&A
[Bug]:
#3841
Replies: 1 comment
-
You are working with deprecated versions of Laravel Excel, Laravel, PHP and PHPExcel. I can't really help you. You can try stackoverflow perhaps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
2.0.0
What version of Laravel are you using?
5.1
What version of PHP are you using?
5.6
Describe your issue
I am trying to right left alignment in excel rows but it is not working for numbers but working for string.
How can the issue be reproduced?
$sheet->getStyle('L')
->getAlignment()
->setHorizontal(\PHPExcel_Style_Alignment::HORIZONTAL_LEFT);
I have tried below both cases as well
->setHorizontal(\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT);
$columnFormat = ['L'=>'\PhpOffice\PhpSpreadsheet\Style\Alignment::HORIZONTAL_LEFT'];
$sheet->setColumnFormat($columnFormat);
What should be the expected behaviour?
I am trying to right left alignment in excel rows but it is not working for numbers but working for string. So can somebody please suggest any idea about above.
Thanks
Vibhor
Beta Was this translation helpful? Give feedback.
All reactions