CopyToStream(DestStream: IIOStream);
CopyToStream(DestStream: System.IO.Stream);
DestStream. The stream, to which copying is performed.
The CopyToStream method copies range data to the specified stream.
All the range contents is copied to the stream: cell values, formulas, formatting, comments.
NOTE. Clear the stream before copying to avoid incorrect copying and mixing with the data contained in the stream.
The example of use is given in description of the ITabRange.PasteFromStream, ITabRange.PasteFromStreamEx methods.
See also: