[]
        
(Showing Draft Content)

C1.Win.TrueDBGrid.PrintInfo.SaveAs

SaveAs Method

SaveAs(string, bool)

Saves the current grid as a file, which can later be loaded into a C1PrintDocument.

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

Declaration
public bool SaveAs(string outputFileName, bool binaryFormat)
Parameters
Type Name Description
string outputFileName

The name of the output file.

bool binaryFormat

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

Returns
Type Description
bool

true if the file was successfully saved, false otherwise.

SaveAs(Stream, bool)

Saves the current grid to a stream.

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

Declaration
public bool SaveAs(Stream stream, bool binaryFormat)
Parameters
Type Name Description
Stream stream

The output stream.

bool binaryFormat

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

Returns
Type Description
bool

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.