Sign in Join
FPDoc Onlineexperiment

TCSVDocument.SaveToStream procedure

Member of TCSVDocumentpublicIn unit CsvDocument

Save the CSV data to stream.

Declaration

pascal
procedure SaveToStream(AStream: TStream)

Arguments

AStream

Stream to write CSV data to.

Description

SaveToStream saves the CSV data to the aStream stream. It uses the settings introduced in TCSVHandler to apply the correct formatting to fields and rows. If EqualColCountPerRow is True then it will add empty cells prior to writing, so all rows in the file have an equal count of columns.

Errors

If the stream cannot be written to, an exception will be raised.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.