mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
I give up for now
This commit is contained in:
parent
7162f265c1
commit
7694c66f08
|
@ -159,18 +159,17 @@ public:
|
||||||
auto sheet1 = wb.get_active_sheet();
|
auto sheet1 = wb.get_active_sheet();
|
||||||
|
|
||||||
sheet1.get_cell("A1").set_value("Sheet1!A1");
|
sheet1.get_cell("A1").set_value("Sheet1!A1");
|
||||||
// formatted_run.set_string("Sheet1 comment");
|
formatted_run.set_string("Sheet1 comment");
|
||||||
// comment_text.add_run(formatted_run);
|
comment_text.add_run(formatted_run);
|
||||||
// sheet1.get_cell("A1").comment(xlnt::comment(comment_text, "Microsoft Office User"));
|
sheet1.get_cell("A1").comment(xlnt::comment(comment_text, "Microsoft Office User"));
|
||||||
sheet1.get_cell("A1").comment("Sheet1 comment");
|
sheet1.get_cell("A1").comment("Sheet1 comment");
|
||||||
/*
|
|
||||||
sheet1.get_cell("A2").set_value("Sheet1!A2");
|
sheet1.get_cell("A2").set_value("Sheet1!A2");
|
||||||
formatted_run.set_string("Sheet1 comment2");
|
formatted_run.set_string("Sheet1 comment2");
|
||||||
comment_text.clear();
|
comment_text.clear();
|
||||||
comment_text.add_run(formatted_run);
|
comment_text.add_run(formatted_run);
|
||||||
sheet1.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User"));
|
sheet1.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User"));
|
||||||
*/
|
|
||||||
/*
|
|
||||||
auto sheet2 = wb.create_sheet();
|
auto sheet2 = wb.create_sheet();
|
||||||
sheet2.get_cell("A1").set_value("Sheet2!A1");
|
sheet2.get_cell("A1").set_value("Sheet2!A1");
|
||||||
formatted_run.set_string("Sheet2 comment");
|
formatted_run.set_string("Sheet2 comment");
|
||||||
|
@ -183,9 +182,6 @@ public:
|
||||||
comment_text.clear();
|
comment_text.clear();
|
||||||
comment_text.add_run(formatted_run);
|
comment_text.add_run(formatted_run);
|
||||||
sheet2.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User"));
|
sheet2.get_cell("A2").comment(xlnt::comment(comment_text, "Microsoft Office User"));
|
||||||
*/
|
|
||||||
wb.save("debug.xlsx");
|
|
||||||
wb.load("debug.xlsx");
|
|
||||||
|
|
||||||
// TS_ASSERT(workbook_matches_file(wb, xlnt::path("data/18_basic_comments.xlsx")));
|
// TS_ASSERT(workbook_matches_file(wb, xlnt::path("data/18_basic_comments.xlsx")));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user