![]() |
![]() |
Products | Download | Order | Forum | Contact us |
| FileName | WideString. A string that indicates the name of the file to be saved. You can include a full path; if you don't, component saves the file in the current folder. |
begin
DBGrid2Excel1.Workbook := nil; //Clears workbook
DBGrid2Excel1.WorkSheetName := 'Orders sheet'; //Specifies name for new worksheet
DBGrid2Excel1.DBGrid := DBGrid1; //Specifies the dbgrid for export
DBGrid2Excel1.SaveDBGridAs('Orders.xls'); //Saves the dbgrid into Orders.xls
DBGrid2Excel1.SaveDBGridAs('Orders.html'); //Saves the dbgrid into Orders.html
end;
| Copyright © NikaSoft 2004-2010 |