Contents - Index - Previous - Next


ExportToWordFile method



Applies to
TProfGrid component

Declaration
function ExportToWordFile(const FileName: TFileName; FileFormat: Integer = 0): Boolean;

Description

Works in the same way as the ExportToWord method, but performs output to the specified file and does not open the Microsoft Word application window.

The second optional parameter of the method (FileFormat) can be used to export to a non-default file format. (A value of 0 indicates the default Microsoft Word format).

Following is the list of constants that may be passed as the FileFormat parameter.

Word97 compatible:
  wdFormatDocument
  wdFormatTemplate
  wdFormatText
  wdFormatTextLineBreaks
  wdFormatDOSText
  wdFormatDOSTextLineBreaks
  wdFormatRTF
  wdFormatUnicodeText

Word2000 or higher required:
  wdFormatEncodedText
  wdFormatHTML

WordXP or higher required:
  wdFormatWebArchive
  wdFormatFilteredHTML