Table of Contents

Method ExportArray

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

ExportArray(XlsxCellRange?, XlsxExportOptions?)

Reads a range into a two-dimensional array, every row of the range included: text as string, a number as decimal (double past its range), a boolean as bool, a cell that shows a date as DateTime, an empty cell as null.

public object?[,] ExportArray(XlsxCellRange? range = null, XlsxExportOptions? options = null)

Parameters

range XlsxCellRange?

The range, or null for every cell the sheet stores.

options XlsxExportOptions

The options, or null for the defaults. FirstRowIsHeader means nothing to an array.

Returns

object[,]

The values, rows first; an array of no rows when the sheet stores nothing.

Exceptions

ResourceLimitExceededException

The range covers more cells than MaxCells.

InvalidDocumentException

The sheet's part is malformed; or Strict is set and a cell holds an error value.