Contents - Index - Previous - Next


ExportToExcel method



Applies to
TProfGrid component

Declaration
function ExportToExcel: Boolean;

Description

Exports the grid to Microsoft Excel via OLE and opens the Microsoft Excel application window.

Returns True on success. Returns False if an exception has occurred or if the application has terminated the export process.

Tip:  You may use the OnExportProgress event to visualize the process of export if necessary.

Note:  Microsoft Excel has a maximum limit of worksheet size of 256 columns and 65536 rows. If the exported number of columns or rows exceeds this limit, ExportToExcel will fail and return False.