Function TWPObject.SaveToFile(path:string; FileName:string; RenameFormatString:string; Compress:Boolean; DestStream:TMemoryStream) : string

Unit: WPRTEDefs
Class: WPRTEDefs.TWPObject

Parameters

  • path:string
  • FileName:string
  • RenameFormatString:string
  • Compress:Boolean
  • DestStream:TMemoryStream

Returns

The type of the result value is string.

Description

This functions is overwritten by the object to save the contents to file. The name of the created file is returned. If DestStream is provided the data will be saved to the stream instead of a file.

Overloaded Methods

Function TWPObject.SaveToFile(FileName:string) : string