Function TWPCustomRtfEdit.SaveToFile(FileName:string; SelectionOnly:Boolean; FormatName:string) : Boolean

Unit: WPCTRMemo
Class: WPCTRMemo.TWPCustomRtfEdit

Parameters

  • FileName:string
  • SelectionOnly:Boolean
  • FormatName:string

Returns

The type of the result value is Boolean.

Description

Save the contents to a file.
Since V6.21 ist is possible to only save the contents of a certain field or other object pair. To do so specify the name in the format string, i.e. "f:name=RTF" to save or load the contents of the field "name". Also see which is internally used to locate the objects.