méthode detect_file_format
Contenu
[
Cacher
]detect_file_format(, flux)
Détecte et renvoie les informations sur un format d’un fichier Excel stocké dans un flux.
Retour
Un objet FileFormatInfo
qui contient les informations détectées.
@staticmethod
def detect_file_format(stream):
...
Paramètre | Taper | Description |
---|---|---|
stream | io.RawIOBase |
detect_file_format(, chemin_fichier)
Détecte et renvoie les informations sur un format d’un fichier Excel stocké dans un fichier.
Retour
Un objet FileFormatInfo
qui contient les informations détectées.
@staticmethod
def detect_file_format(file_path):
...
Paramètre | Taper | Description |
---|---|---|
file_path | str | Le chemin du fichier. |
detect_file_format(, flux, mot de passe)
Détecte et renvoie les informations sur un format d’un fichier Excel stocké dans un flux.
Retour
Un objet FileFormatInfo
qui contient les informations détectées.
@staticmethod
def detect_file_format(stream, password):
...
Paramètre | Taper | Description |
---|---|---|
stream | io.RawIOBase | |
password | str | Le mot de passe pour les fichiers ooxml cryptés. |
detect_file_format(, chemin_fichier, mot de passe)
Détecte et renvoie les informations sur un format d’un fichier Excel stocké dans un fichier.
Retour
Un objet FileFormatInfo
qui contient les informations détectées.
@staticmethod
def detect_file_format(file_path, password):
...
Paramètre | Taper | Description |
---|---|---|
file_path | str | Le chemin du fichier. |
password | str | Le mot de passe pour les fichiers ooxml cryptés. |
Voir également
- module
aspose.cells
- classe
FileFormatInfo
- classe
FileFormatUtil