SpreadsheetDocument.FromFlatOpcDocument Method

Definition

Overloads

FromFlatOpcDocument(XDocument)

Creates a new editable instance of SpreadsheetDocument from an XDocument in Flat OPC format, opened on a MemoryStream.

FromFlatOpcDocument(XDocument, Package)

Creates a new instance of SpreadsheetDocument from a workbook in Flat OPC format on the specified instance of Package.

FromFlatOpcDocument(XDocument, Stream, Boolean)

Creates a new instance of SpreadsheetDocument from a workbook in Flat OPC format.

FromFlatOpcDocument(XDocument, String, Boolean)

Creates a new instance of SpreadsheetDocument from a workbook in Flat OPC format.

FromFlatOpcDocument(XDocument)

Creates a new editable instance of SpreadsheetDocument from an XDocument in Flat OPC format, opened on a MemoryStream.

C#
public static DocumentFormat.OpenXml.Packaging.SpreadsheetDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document);

Parameters

document
XDocument

The document in Flat OPC format.

Returns

A new instance of SpreadsheetDocument.

Applies to

DocumentFormat.OpenXml 3.0.1 i inne wersje
Produkt Wersje
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

FromFlatOpcDocument(XDocument, Package)

Creates a new instance of SpreadsheetDocument from a workbook in Flat OPC format on the specified instance of Package.

C#
public static DocumentFormat.OpenXml.Packaging.SpreadsheetDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document, System.IO.Packaging.Package package);

Parameters

document
XDocument

The workbook in Flat OPC format.

package
Package

The specified instance of Package.

Returns

A new instance of SpreadsheetDocument.

Applies to

DocumentFormat.OpenXml 3.0.1 i inne wersje
Produkt Wersje
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

FromFlatOpcDocument(XDocument, Stream, Boolean)

Creates a new instance of SpreadsheetDocument from a workbook in Flat OPC format.

C#
public static DocumentFormat.OpenXml.Packaging.SpreadsheetDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document, System.IO.Stream stream, bool isEditable);

Parameters

document
XDocument

The workbook in Flat OPC format.

stream
Stream

The stream on which the SpreadsheetDocument will be created.

isEditable
Boolean

In ReadWrite mode. False for Read only mode.

Returns

A new instance of SpreadsheetDocument.

Applies to

DocumentFormat.OpenXml 3.0.1 i inne wersje
Produkt Wersje
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1

FromFlatOpcDocument(XDocument, String, Boolean)

Creates a new instance of SpreadsheetDocument from a workbook in Flat OPC format.

C#
public static DocumentFormat.OpenXml.Packaging.SpreadsheetDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document, string path, bool isEditable);

Parameters

document
XDocument

The workbook in Flat OPC format.

path
String

The path and file name of the target SpreadsheetDocument.

isEditable
Boolean

In ReadWrite mode. False for Read only mode.

Returns

A new instance of SpreadsheetDocument.

Applies to

DocumentFormat.OpenXml 3.0.1 i inne wersje
Produkt Wersje
DocumentFormat.OpenXml 2.7.1, 2.7.2, 2.8.0, 2.8.1, 2.9.0, 2.9.1, 2.10.0, 2.10.1, 2.11.0, 2.11.1, 2.11.2, 2.11.3, 2.12.0, 2.12.1, 2.12.2, 2.12.3, 2.13.0, 2.13.1, 2.14.0, 2.15.0, 2.16.0, 2.17.1, 2.18.0, 2.19.0, 2.20.0, 3.0.0, 3.0.1