LoadFromStream Method

[Top]  [Chapter]  [Previous]  [Next]

Declaration

bool LoadFromStream([In] object Stream, [In] bool Insert, [In] string FormatStr);

Description

Load data from a stream into this editor.

 

.NET: The stream converter must be re-created for each load and save operation!

 

Example:

System.IO.Stream str = new System.IO.MemoryStream();

wpdllint1.Memo.SaveToStream( new WPDynamic.Stream2WPStream(str) ,false,"RTF");

wpdllint1.Position = 0;

wpdllint2.Memo.LoadFromStream(new WPDynamic.Stream2WPStream(str), true, "AUTO");

 

Parameters

Stream

This can be either a reference to a IStream interface or a a reference to the Stream2WPStream converter provided by the .NET assembly.

Insert

true to insert the file at the cursor position, otherwise the complete text is replaced.

FormatStr

Select the reader and set options. see FormatStrings. It is also possible to just the contents of a merge field using the syntax f:name=

Category

Load and Save


[idh_iwpmemo_loadfromstream.htm]    Copyright © 2007 by WPCubed GmbH