Method Read
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Read(string, string)
Reads what a connection string links. A workbook's sheet by its name, else its named range, else (for a file of one sheet, a CSV file) the file's own sheet; the cells of a range cut from the sheet, whole columns to the sheet's last row.
public static CadSheet Read(string connection, string drawingFolder)
Parameters
connectionstringThe connection string.
drawingFolderstringThe drawing's folder, which a relative path is of.
Returns
- CadSheet
The cells, from the first cell of the range.
Exceptions
- CadDataSourceException
Thrown when the file, the sheet, the named range or the range is not there or cannot be read.