2021-05-13 22:59:01 +01:00
|
|
|
/*****************************************************************************
|
|
|
|
* Test cases for libxlsxwriter.
|
|
|
|
*
|
|
|
|
* Test to compare output against Excel files.
|
|
|
|
*
|
2024-02-26 18:47:32 +00:00
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
* Copyright 2014-2024, John McNamara, jmcnamara@cpan.org.
|
2021-05-13 22:59:01 +01:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "xlsxwriter.h"
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
|
|
|
lxw_workbook *workbook = workbook_new("test_background03.xlsx");
|
|
|
|
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);
|
|
|
|
|
|
|
|
worksheet_insert_image(worksheet, CELL("E9"), "images/logo.jpg");
|
|
|
|
worksheet_set_background(worksheet, "images/logo.jpg");
|
|
|
|
|
|
|
|
return workbook_close(workbook);
|
|
|
|
}
|