libxlsxwriter/examples/comments1.c

21 lines
491 B
C
Raw Normal View History

/*
* An example of writing cell comments to a worksheet using libxlsxwriter.
*
2025-02-11 00:03:36 +00:00
* Copyright 2014-2025, John McNamara, jmcnamara@cpan.org
*
*/
#include "xlsxwriter.h"
int main() {
lxw_workbook *workbook = workbook_new("comments1.xlsx");
lxw_worksheet *worksheet = workbook_add_worksheet(workbook, NULL);
worksheet_write_string( worksheet, 0, 0, "Hello" , NULL);
worksheet_write_comment(worksheet, 0, 0, "This is a comment");
return workbook_close(workbook);
}