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
pathstringThe file; one there is written over.
sheetNamestringThe sheet's name, up to 31 letters without
[ ] : * ? / </code>.sheetCadSheetThe 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.