Hi !
I actually want to swap some of my columns in my datastore that is used by ExcelExport. I tried #329 but it did not work !
Thanks.
Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Hi !
I actually want to swap some of my columns in my datastore that is used by ExcelExport. I tried #329 but it did not work !
Thanks.
Hi,
Please try the columns option like in this code example:
$report->exportToExcel(array(
'dataStores' => array(
'salesQuarterCustomer' => array(
'columns' => array('customerName', 'customerNumber', 'Total'),
)
)
))
->toBrowser("SalesQuarters.xlsx");
Let us know if it works for you or not. Thanks!
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo