JVCL Help:TJvDBGridExcelExport
From Project JEDI Wiki
Jump to navigationJump to searchJVCL Help: TJvDBGridExcelExport Class
[+] JvDBGridExport.pas Classes
[+] TJvDBGridExcelExport Events
[+] TJvDBGridExcelExport Methods
[+] TJvDBGridExcelExport Properties
Search in JVCL Help
Search in all projectsClass Hierarchy
TJvCustomDBGridExport
TJvCustomDBGridOleExport
TJvDBGridExcelExport
run\JvDBGridExport.pas
Summary
Write here a summary (1 line)
Pascal
run\JvDBGridExport.pas
TJvDBGridExcelExport = class(TJvCustomDBGridOleExport);
Description
- JVCLInfo
Examples
procedure ExportToMSExcel(DBGridExcelExport : TJvDBGridExcelExport; SaveDialog : TJvSaveDialog; DBUltimGrid : TJvDBUltimGrid; ProgressDialog: TJvProgressDialog); begin
SaveDialog.Title := 'Exportar a Microsoft Excel...'; SaveDialog.Filter := 'Microsoft Excel 97-2003 [*.xls]|*.xls|Microsoft Excel 2007 [*.xlsx]|*.xlsx|Todos los Archivos [*.*]|*.*'; SaveDialog.FilterIndex := 1; SaveDialog.DefaultExt := '*.xls'; if SaveDialog.Execute Then begin DBGridExcelExport.FileName := SaveDialog.FileName; //DBGridExcelExport.UseFieldGetText := true; DBGridExcelExport.Grid := DBUltimGrid; ProgressDialog.Position := 0; ProgressDialog.Max := DBUltimGrid.DataSource.DataSet.RecordCount-1; ProgressDialog.Show; DBGridExcelExport.ExportGrid; ProgressDialog.Hide; end;
end;
run\JvDBGridExport.pas
About
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page