FileFormatUtil.DetectFileFormat

DetectFileFormat(Stream)

Detects and returns the information about a format of an excel stored in a stream.

public static FileFormatInfo DetectFileFormat(Stream stream)
ParameterTypeDescription
streamStream

Return Value

A FileFormatInfo object that contains the detected information.

See Also


DetectFileFormat(Stream, string)

Detects and returns the information about a format of an excel stored in a stream.

public static FileFormatInfo DetectFileFormat(Stream stream, string password)
ParameterTypeDescription
streamStream
passwordStringThe password for encrypted ooxml files.

Return Value

A FileFormatInfo object that contains the detected information.

See Also


DetectFileFormat(string)

Detects and returns the information about a format of an excel stored in a file.

public static FileFormatInfo DetectFileFormat(string filePath)
ParameterTypeDescription
filePathStringThe file path.

Return Value

A FileFormatInfo object that contains the detected information.

See Also


DetectFileFormat(string, string)

Detects and returns the information about a format of an excel stored in a file.

public static FileFormatInfo DetectFileFormat(string filePath, string password)
ParameterTypeDescription
filePathStringThe file path.
passwordStringThe password for encrypted ooxml files.

Return Value

A FileFormatInfo object that contains the detected information.

See Also