[]
        
(Showing Draft Content)

C1.Win.TrueDBGrid.PrintInfo.SaveAsC1d

SaveAsC1d Method

SaveAsC1d(string)

Saves the current grid as a C1D 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 SaveAsC1d(string outputFileName)
Parameters
Type Name Description
string outputFileName

The name of the output file.

Returns
Type Description
bool

true if the file was successfully saved, false otherwise.

SaveAsC1d(Stream)

Saves the current grid to a stream in C1D (native C1PrintDocument) format.

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

Declaration
public bool SaveAsC1d(Stream stream)
Parameters
Type Name Description
Stream stream

The output stream.

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.