I know that is not possibleto export data from TTMSFNCGrid directly to Excel and the workarround is to pass data to TWebSreingGrid and then export to Excel using TWebXLSX component.
But i use this method for two years ago.
I want to know is there are a different and newer system to export to excel directly from FNCGrid.
I see that in the documentation of FNCGrid it talks about TTMSFNCGridExcelIO component to export from FNCGrid but this component is not in the palete...
How i say in the anterior reply, i think that TTMSFNCGridExcelIO component is not available in one Web Project.
Then i continue using TWebXLSX Component.
Whith this component i generate XL without problems in an Web Project.
But i want to modify the Cell content when i export to excel.
I need to do two kind of modifications of Cell:
1.- Modify the Value of Cell.
2.- Modify the style of Cell. For example, make Bold or set Color for the row zero...
For do this i assign my own procedure for event OnSaveCell...
But i can modify the value of the cell but i can not modify the style...
My procedure is like this:
procedure TDataGrid.EXCELSaveCell(Sender: TObject; ARow,AColumn: Integer; AContent: string; var ACell: TJSExcelJSCellRecord);
begin
if ARow=0 then
begin
ACell.cell.style.font.bold:=true; // --> ERROR (Compiler say style property not found)
console.log(ACell.cell.text); // --> Ok
ACell.cell.value:='hola'; // --> Ok
ACell.cell.font.bold:=true; // --> ERROR in runtime. Execution failed.
end;
end;