Method WriteFile
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
WriteFile(string, CadSheet)
Writes cells to a file by its extension: .xlsx a workbook of one sheet (numbers as numbers), .csv
comma separated values, .txt tab separated; any other extension, as the .xls and .mdb AutoCAD also writes, is
refused.
public static void WriteFile(string path, CadSheet sheet)
Parameters
Exceptions
- ArgumentNullException
Thrown when an argument is null.
- NotSupportedException
Thrown when the extension is none of the three.
- IOException
Thrown when the file cannot be written.