Load and Save Category

Description
There are multiple methods to load and save text. The high level functions are available in the editor (TWPCustomRTFEdit). They internally use the low level functions defined in the TWPRTFDataCollection class. It is also possible to load the text of a paragraph (TParagraph.LoadFromStream/String) - which is very useful for table paragraphs since it is possible that multiple paragraph can be loaded into one cell. You can also use the properties AsString and SelectionAsString or the function AsANSIString if you need to work with strings.
The load and save format is modified by "format strings". This are strings which contain a format name (such as "RTF", "HTML", "AUTO" or the respcective reader or writer classname) and optional options, such as "-nobinary" or "-onlybody" which are separated by comma. The function AsANSIString accepts such a format string parameter.
Properties
TWPRTFBlobContents.AsStringChange the text of a header or footer text.
TWPRTFDataBlock.RtfTextUse RTFText.AsString to read or write the text in this RTFDataBlock. Using RTFText.Format You can select the format (ANSI, RTF, HTML, WPTOOLS) to use.
TWPCustomRtfEdit.AsString
TWPCustomRtfEdit.LastFileName
TWPCustomRtfEdit.SelectionAsString
TWPCustomRtfEdit.WriteObjectMode
TWPRichText.WriteObjectMode

Methods
TParagraph.LoadFromStream
TParagraph.LoadFromString
TWPRTFDataCollection.AsANSIString
TWPRTFDataCollection.LoadFromStreamInternal, low level load procedure.
TWPRTFDataCollection.SaveToStream
TWPRTFDataCollection.SetANSIString
TWPCustomRtfEdit.AsANSIString
TWPCustomRtfEdit.LoadFromBuffer
TWPCustomRtfEdit.LoadFromFile
TWPCustomRtfEdit.LoadFromStream
TWPCustomRtfEdit.LoadSelectionFromStream
TWPCustomRtfEdit.SaveSelectionToStream
TWPCustomRtfEdit.SaveToFile
TWPCustomRtfEdit.SaveToStream

Events
TWPRTFDataCollection.AfterLoadFromStream
TWPRTFDataCollection.BeforeLoadFromStream
TWPRTFDataCollection.BeforeSaveToStream
TWPRTFDataCollection.OnPrepareImageforSaving
TWPRTFDataCollection.OnReaderCreateStream
TWPRTFDataCollection.OnRequestHTTPImage
TWPRTFDataCollection.OnRequestHTTPString
TWPCustomRtfEdit.AfterLoadText
TWPCustomRtfEdit.OnChangeLastFileName
TWPRichText.AfterLoadText
TWPRichText.OnChangeLastFileName


Copyright (C) by WPCUBED GmbH - Munich
http://www.wpcubed.com