Function TWPRTFEngineBasis.LoadFromStream(Source:TStream; InsertText:Boolean; FormatName:string; SplitPar:Boolean; Reader:TWPCustomTextReader; AfterLoadEvent:TWPIOAfterLoadWithReader) : Boolean

Unit: WPRTEDefs
Class: WPRTEDefs.TWPRTFEngineBasis

Parameters

  • Source:TStream
  • InsertText:Boolean
  • FormatName:string
  • SplitPar:Boolean
  • Reader:TWPCustomTextReader
  • AfterLoadEvent:TWPIOAfterLoadWithReader

Returns

The type of the result value is Boolean.

Description

Load a text body from stream. If loading is ok the result is TRUE. You can use the property TextLoadFormat to select a different reader class. Please also note the property LoadOptions. The current text is cleared when the property InsertText is not set to TRUE