初始化PHP-Xlswrite扩展
This commit is contained in:
20
library/libxlsxwriter/examples/comments1.c
Normal file
20
library/libxlsxwriter/examples/comments1.c
Normal file
@ -0,0 +1,20 @@
|
||||
/*
|
||||
* An example of writing cell comments to a worksheet using libxlsxwriter.
|
||||
*
|
||||
* Copyright 2014-2021, 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);
|
||||
}
|
Reference in New Issue
Block a user