mirror of
https://github.com/jmcnamara/libxlsxwriter.git
synced 2026-05-21 06:45:21 -06:00
Renamed worksheet_set_column() function to worksheet_set_column_opt() for consistency with current and future APIs. The worksheet_set_column() function is now used without the option. This is a backward incompatible change.
25 lines
707 B
C
25 lines
707 B
C
/*****************************************************************************
|
|
* Test cases for libxlsxwriter.
|
|
*
|
|
* Test to compare output against Excel files.
|
|
*
|
|
* Copyright 2014-2016, John McNamara, jmcnamara@cpan.org
|
|
*
|
|
*/
|
|
|
|
#include "xlsxwriter.h"
|
|
|
|
int main() {
|
|
|
|
lxw_workbook *workbook = new_workbook("test_image18.xlsx");
|
|
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);
|
|
|
|
lxw_image_options options = {.x_offset = 5, .y_offset = 5};
|
|
|
|
worksheet_set_row(worksheet, 1, 96, NULL, NULL);
|
|
worksheet_set_column(worksheet, 2, 2, 18, NULL);
|
|
|
|
worksheet_insert_image_opt(worksheet, CELL("C2"), "images/issue32.png", &options);
|
|
|
|
return workbook_close(workbook);
|
|
}
|