Contents - Index - Previous - Next


ExportToWord method



Applies to
TProfGrid component

Declaration
function ExportToWord: Boolean;

Description

Exports the grid to Microsoft Word via OLE and opens the Microsoft Word 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:

1. Microsoft Word has a maximum limit of table width of 22 inches (55.88 cm). If the grid width exceeds this limit, ExportToWord will fail and return False.

2. Microsoft Word has a maximum limit of table size of 32767 rows. If the number of exported rows exceeds this limit, ExportToWord will fail and return False.