Table of Contents

Method OpenData

Namespace
DocWright.Spreadsheet
Assembly
DocWright.Spreadsheet.dll

OpenData()

Opens the embedded data as the workbook holds it: an OLE container (read its streams with DocWright.Ole.OlePayload, whose TryOpenNativeContent gives a packaged file's bytes) or an Office file. The bytes are the part's, already held within the limits the workbook was opened with; nothing is decoded or run.

public Stream OpenData()

Returns

Stream

A read-only stream.

Exceptions

InvalidOperationException

The object is linked, or its data part is missing.