Table of Contents

Method Write

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Write(string, string, CadSheet)

Writes a new workbook of one sheet, as a data extraction writes its .xlsx file: texts as inline strings, numbers and booleans as values, a date as its number under the date format of the workbook's own styles.

public static void Write(string path, string sheetName, CadSheet sheet)

Parameters

path string

The file; one there is written over.

sheetName string

The sheet's name, up to 31 letters without [ ] : * ? / </code>.

sheet CadSheet

The cells.

Exceptions

ArgumentNullException

Thrown when the path or the sheet is null.

ArgumentException

Thrown when the sheet's name is not one a workbook takes.