Hello Dear,
I have query in my code, I am using yajra/laravel-datatables package ("yajra/laravel-datatables-oracle": "^9.0")
. I want to export Laravel data-table same as table view. Means I can't export data-table with word-wrap text. Please visit below screenshot so you can sure about it.
Screenshot 1: This one is the view of my laravel data-table. That I need same as during export in excel file.
Screenshot 2: This one is my current view of excel file.
Please check it and give me a suggestion for it. Thanks in advance.
You need to use column formatting. You should use ShouldAutoSize.
Read More about column formatting
You can use ShouldAutoSize in your export class. sample code of export class is as below: