共用方式為


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.

public static DocumentFormat.OpenXml.Packaging.SpreadsheetDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document);
static member FromFlatOpcDocument : System.Xml.Linq.XDocument -> DocumentFormat.OpenXml.Packaging.SpreadsheetDocument
Public Shared Function FromFlatOpcDocument (document As XDocument) As SpreadsheetDocument

Parameters

document
XDocument

The document in Flat OPC format.

Returns

A new instance of SpreadsheetDocument.

Applies to

FromFlatOpcDocument(XDocument, Package)

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

public static DocumentFormat.OpenXml.Packaging.SpreadsheetDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document, System.IO.Packaging.Package package);
static member FromFlatOpcDocument : System.Xml.Linq.XDocument * System.IO.Packaging.Package -> DocumentFormat.OpenXml.Packaging.SpreadsheetDocument
Public Shared Function FromFlatOpcDocument (document As XDocument, package As Package) As SpreadsheetDocument

Parameters

document
XDocument

The workbook in Flat OPC format.

package
Package

The specified instance of Package.

Returns

A new instance of SpreadsheetDocument.

Applies to

FromFlatOpcDocument(XDocument, Stream, Boolean)

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

public static DocumentFormat.OpenXml.Packaging.SpreadsheetDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document, System.IO.Stream stream, bool isEditable);
static member FromFlatOpcDocument : System.Xml.Linq.XDocument * System.IO.Stream * bool -> DocumentFormat.OpenXml.Packaging.SpreadsheetDocument
Public Shared Function FromFlatOpcDocument (document As XDocument, stream As Stream, isEditable As Boolean) As SpreadsheetDocument

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

FromFlatOpcDocument(XDocument, String, Boolean)

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

public static DocumentFormat.OpenXml.Packaging.SpreadsheetDocument FromFlatOpcDocument (System.Xml.Linq.XDocument document, string path, bool isEditable);
static member FromFlatOpcDocument : System.Xml.Linq.XDocument * string * bool -> DocumentFormat.OpenXml.Packaging.SpreadsheetDocument
Public Shared Function FromFlatOpcDocument (document As XDocument, path As String, isEditable As Boolean) As SpreadsheetDocument

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