ComponentOne True DBGrid for WinForms
SaveAs(Stream,Boolean) Method

C1.Win.C1TrueDBGrid.4 Assembly > C1.Win.C1TrueDBGrid Namespace > PrintInfo Class > SaveAs Method : SaveAs(Stream,Boolean) Method
The output stream.
The format of the output file, true binary format should be used (C1DB) otherwise standard C1D format.
Saves the current grid to a stream.

Note that unlike most other print/export methods, this method does not require C1Report assemblies.

Syntax
'Declaration
 
Public Overloads Function SaveAs( _
   ByVal stream As System.IO.Stream, _
   ByVal binaryFormat As System.Boolean _
) As System.Boolean
public System.bool SaveAs( 
   System.IO.Stream stream,
   System.bool binaryFormat
)

Parameters

stream
The output stream.
binaryFormat
The format of the output file, true binary format should be used (C1DB) otherwise standard C1D format.

Return Value

true if the stream was successfully written, false otherwise.
Remarks
Unlike the Print(Stream) method, this method does not reset the stream's position after saving.
See Also

Reference

PrintInfo Class
PrintInfo Members
Overload List