1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
##############################################################################
#
# An example of setting a worksheet background image with the XlsxWriter
# Python module.
#
# SPDX-License-Identifier: BSD-2-Clause
# Copyright 2013-2023, John McNamara, jmcnamara@cpan.org
#
import xlsxwriter
# Create an new Excel file and add a worksheet.
workbook = xlsxwriter.Workbook("background.xlsx")
worksheet = workbook.add_worksheet()
# Set the background image.
worksheet.set_background("logo.png")
workbook.close()
|