Table of Contents

Method Write

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Write(string, string, CadSheet)

Writes cells back to what a connection string links, from its first cell: a CSV file is written whole again (its other cells kept), a workbook has the cells put into its sheet and every other part left as it is.

public static int Write(string connection, string drawingFolder, CadSheet values)

Parameters

connection string

The connection string.

drawingFolder string

The drawing's folder, which a relative path is of.

values CadSheet

The cells.

Returns

int

The number of cells written.

Exceptions

ArgumentNullException

Thrown when the values are null.

CadDataSourceException

Thrown when the source is not there, is a binary .xls workbook, or cannot be written.