XMLSaver

Vue de l’ensemble

‘XMLSaver’ est une classe dans Aspose.Cells FOSS pour Python.

Gérer les données de livret de travail en format XML pour les fichiers .xlsx.

Cette classe fournit 14 méthodes pour travailler avec des objets XMLSaver dans les programmes Python. Les méthodologies disponibles comprennent: __init__, append_override , col_signature ; emit_range; get_or_create_alignment_style : ‘get&or&creat_border_ style: 'ghet&ghat&fill_styl.

méthodes

SignatureDescription
__init__(workbook)Initializes a new instance of the XMLSaver class.
include_ref(ref)Adds a reference to an external part for later inclusion
save(file_path)Saves the workbook to an Excel file (.xlsx format).
append_override(part_name, content_type)Registers a custom part with its content type to override defaults
col_signature(col_idx)Returns the column signature string for the specified column index
emit_range(start_idx, end_idx, sig)Writes a range of data from start to end indices using the provided signature
register_default_styles()Registers default styles for fonts, fills, borders, and alignments.
get_or_create_font_style(font)Gets or creates a font style index.
get_or_create_fill_style(fill)Gets or creates a fill style index.
get_or_create_border_style(borders)Gets or creates a border style index.
get_or_create_alignment_style(alignment)Gets or creates an alignment style index.
get_or_create_protection_style(protection)Gets or creates a protection style index.
get_or_create_number_format_style(number_format)Gets or creates a number format style index.
get_or_create_cell_style(cell)Gets or creates a cell xf style index.

Voir aussi

  • Aspose.Cells pour Python — Enterprise API Reference
 Français