True DBGrid for WinForms | ComponentOne
C1.Win.C1TrueDBGrid.4.8 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.

In This Topic
    SaveAs(Stream,Boolean) Method
    In This Topic
    Saves the current grid to a stream.

    Note that unlike most other print/export methods, this method does not require C1.PrintDocument 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