OpenXmlPackage.FromFlatOpcDocumentCore Method

Definition

Overloads

FromFlatOpcDocumentCore(XDocument, Package)

Converts an XDocument in Flat OPC format to an OpenXml package stored in a Package.

FromFlatOpcDocumentCore(XDocument, Stream)

Converts an XDocument in Flat OPC format to an OpenXml package stored on a Stream.

FromFlatOpcDocumentCore(XDocument, String)

Converts an XDocument in Flat OPC format to an OpenXml package stored in a file.

FromFlatOpcDocumentCore(XDocument, Package)

Converts an XDocument in Flat OPC format to an OpenXml package stored in a Package.

C#
protected static System.IO.Packaging.Package FromFlatOpcDocumentCore (System.Xml.Linq.XDocument flatOpcDocument, System.IO.Packaging.Package package);
C#
protected static System.IO.Packaging.Package FromFlatOpcDocumentCore (System.Xml.Linq.XDocument document, System.IO.Packaging.Package package);

Parameters

flatOpcDocumentdocument
XDocument

The document in Flat OPC format.

package
Package

The Package in which to store the OpenXml package.

Returns

The Package containing the OpenXml package.

Applies to

DocumentFormat.OpenXml 2.20.0 and other versions
Product Versions
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

FromFlatOpcDocumentCore(XDocument, Stream)

Converts an XDocument in Flat OPC format to an OpenXml package stored on a Stream.

C#
protected static System.IO.Stream FromFlatOpcDocumentCore (System.Xml.Linq.XDocument flatOpcDocument, System.IO.Stream stream);
C#
protected static System.IO.Stream FromFlatOpcDocumentCore (System.Xml.Linq.XDocument document, System.IO.Stream stream);

Parameters

flatOpcDocumentdocument
XDocument

The document in Flat OPC format.

stream
Stream

The Stream on which to store the OpenXml package.

Returns

The Stream containing the OpenXml package.

Applies to

DocumentFormat.OpenXml 2.20.0 and other versions
Product Versions
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

FromFlatOpcDocumentCore(XDocument, String)

Converts an XDocument in Flat OPC format to an OpenXml package stored in a file.

C#
protected static string FromFlatOpcDocumentCore (System.Xml.Linq.XDocument flatOpcDocument, string path);
C#
protected static string FromFlatOpcDocumentCore (System.Xml.Linq.XDocument document, string path);

Parameters

flatOpcDocumentdocument
XDocument

The document in Flat OPC format.

path
String

The path and file name of the file in which to store the OpenXml package.

Returns

The path and file name of the file containing the OpenXml package.

Applies to

DocumentFormat.OpenXml 2.20.0 and other versions
Product Versions
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