Hello,
I have created a grid with the data that I want to export to excel.
I can modify the name of the file with the sc_set_export_name command.
Now I would like to rename sheet1 which appears as “query” when I download the created file.
Is it possible?
1 Like
Hi quality
Try something like this in OnScriptinit event
$this->Xls_dados->setActiveSheetIndex(0);
$this->Nm_ActiveSheet = $this->Xls_dados->getActiveSheet();
$this->Nm_ActiveSheet->setTitle(‘your-sheet-name-here’);
Regards
JM
2 Likes