Table of Contents

Method ToJson

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

ToJson(string, Stream, XlsxJsonOptions?)

Writes one sheet as JSON. See ToJson(Stream, XlsxJsonOptions?).

public void ToJson(string sheetName, Stream stream, XlsxJsonOptions? options = null)

Parameters

sheetName string

The sheet's name, compared without regard to case.

stream Stream

Where the bytes go. It is not closed.

options XlsxJsonOptions

How to write, or null for the defaults.

Exceptions

ArgumentNullException

sheetName or stream is null.

ArgumentException

The workbook has no sheet of that name.

InvalidOperationException

The sheet is not a worksheet.

ResourceLimitExceededException

The range covers more cells than MaxCells.

InvalidDocumentException

The sheet's part is malformed.