![]() |
![]() |
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
Dataset2Excel1.Workbook := nil; //Clears workbook
Dataset2Excel1.WorkSheetName := 'Orders sheet'; //Specifies name for new worksheet
Dataset2Excel1.Dataset := Table1; //Specifies the dataset for export
Dataset2Excel1.SaveDatasetAs('Orders.xls'); //Saves the dataset into Orders.xls
Dataset2Excel1.SaveDatasetAs('Orders.html'); //Saves the dataset into Orders.html
end;
| Copyright © NikaSoft 2004-2011 |