1 /*****************************************************************************
2  * Test cases for libxlsxwriter.
3  *
4  * Test to compare output against Excel files.
5  *
6  * Copyright 2014-2021, John McNamara, jmcnamara@cpan.org
7  *
8  */
9 
10 #include "xlsxwriter.h"
11 
main()12 int main() {
13 
14     lxw_workbook  *workbook   = workbook_new("test_repeat05.xlsx");
15     lxw_worksheet *worksheet1 = workbook_add_worksheet(workbook, NULL);
16     lxw_worksheet *worksheet2 = workbook_add_worksheet(workbook, NULL);
17     lxw_worksheet *worksheet3 = workbook_add_worksheet(workbook, NULL);
18 
19     worksheet_set_paper(worksheet1, 9);
20     worksheet1->vertical_dpi = 200;
21 
22     worksheet_set_paper(worksheet3, 9);
23     worksheet3->vertical_dpi = 200;
24 
25     (void) worksheet2;
26 
27     worksheet_repeat_rows(worksheet1, 0, 0);
28     worksheet_repeat_rows(worksheet3, 2, 3);
29     worksheet_repeat_columns(worksheet3, 1, 5);
30 
31     worksheet_write_string(worksheet1, CELL("A1"), "Foo" , NULL);
32 
33     return workbook_close(workbook);
34 }
35