FileFormatUtil class

FileFormatUtil class

Provides utility methods for converting file format enums to strings or file extensions and back.

The FileFormatUtil type exposes the following members:

Methods

MethodDescription
detect_file_format(, stream)Detects and returns the information about a format of an excel stored in a stream.
detect_file_format(, stream, password)Detects and returns the information about a format of an excel stored in a stream.
detect_file_format(, file_path)Detects and returns the information about a format of an excel stored in a file.
detect_file_format(, file_path, password)Detects and returns the information about a format of an excel stored in a file.
verify_password(, stream, password)Detects and returns the information about a format of an excel stored in a stream.
file_format_to_save_format(, format)Converting file format to save format.
extension_to_save_format(, extension)Converts a file name extension into a SaveFormat value.
is_template_format(, extension)Returns true if the extension is .xlt, .xltX, .xltm,.ots.
load_format_to_extension(, load_format)Converts a load format enumerated value into a file extension.
load_format_to_save_format(, load_format)Converts a LoadFormat value to a SaveFormat value if possible.
save_format_to_extension(, format)Converts a save format enumerated value into a file extension.
save_format_to_load_format(, save_format)Converts a SaveFormat value to a LoadFormat value if possible.

See Also