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
connectionstringThe connection string.
drawingFolderstringThe drawing's folder, which a relative path is of.
valuesCadSheetThe 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.