.. SPDX-License-Identifier: BSD-2-Clause
   Copyright (c) 2013-2025, John McNamara, jmcnamara@cpan.org

.. _main_examples:

Examples
========

The following are some of the examples included in the
`examples <https://github.com/jmcnamara/XlsxWriter/tree/main/examples>`_
directory of the XlsxWriter distribution.

.. toctree::
   :maxdepth: 1

   example_hello_world.rst
   example_demo.rst
   example_check_close.rst
   example_datetimes.rst
   example_hyperlink.rst
   example_array_formula.rst
   example_dynamic_arrays.rst
   example_autofilter.rst
   example_data_validate.rst
   example_conditional_format.rst
   example_defined_name.rst
   example_merge1.rst
   example_autofit.rst
   example_autofit_manually.rst
   example_rich_strings.rst
   example_merge_rich.rst
   example_images.rst
   example_images_bytesio.rst
   example_embedded_images.rst
   example_right_to_left.rst
   example_django_simple.rst
   example_http_server.rst
   example_headers_footers.rst
   example_panes.rst
   example_tables.rst
   example_checkbox.rst
   example_user_types1.rst
   example_user_types2.rst
   example_user_types3.rst
   example_ignore_errors.rst
   example_sparklines1.rst
   example_sparklines2.rst
   example_comments1.rst
   example_comments2.rst
   example_textbox.rst
   example_outline1.rst
   example_outline2.rst
   example_doc_properties.rst
   example_sensitivity_label.rst
   example_unicode.rst
   example_unicode_polish_utf8.rst
   example_unicode_shift_jis.rst
   example_watermark.rst
   example_background.rst
   example_tab_colors.rst
   example_diagonal_border.rst
   example_protection.rst
   example_hide_sheet.rst
   example_hide_row_col.rst
   example_inheritance1.rst
   example_inheritance2.rst
   example_macros.rst
   example_lambda.rst
