JVCL Help:TJvDBGridExcelExport

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvCustomDBGridExport
TJvCustomDBGridOleExport
TJvDBGridExcelExport
run\JvDBGridExport.pas


Summary

Write here a summary (1 line)

run\JvDBGridExport.pas


Pascal

 run\JvDBGridExport.pas
 TJvDBGridExcelExport = class(TJvCustomDBGridOleExport);


Description

  1. JVCLInfo

run\JvDBGridExport.pas


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

Navigation

run\JvDBGridExport.pas



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