[]
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.
public bool SaveAs(string outputFileName, bool binaryFormat)
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. |
Type | Description |
---|---|
bool | true if the file was successfully saved, false otherwise. |
Saves the current grid to a stream.
Note that unlike most other print/export methods, this method does not require C1.PrintDocument assemblies.
public bool SaveAs(Stream stream, bool binaryFormat)
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. |
Type | Description |
---|---|
bool | true if the stream was successfully written, false otherwise. |
Unlike the Print(Stream) method, this method does not reset the stream's position after saving.