ResultStream Property
The stream that the merged result will be saved to.
property ResultStream: TStream;
Description
Set the ResultStream property before calling the Merge method to tell the component you want the result of the merge process to be saved to the specified TStream object. Setting the ResultStream property automatically sets the MergeResult property to msStream.
Example
merged := TMemoryStream.Create;
DataMerge.SourceText := memo1.text;
DataMerge.ResultStream := merged;
DataMerge.Merge;
merged.seek(0, soFromBeginning);
memo1.lines.loadfromstream(merged);
FreeAndNil(merged);
See Also