tfussell / xlnt

:bar_chart: Cross-platform user-friendly xlsx library for C++11+
Other
1.5k stars 423 forks source link

The.xlsx file also generates another file (with a random name and version) #705

Open TThityou opened 1 year ago

TThityou commented 1 year ago

code in here: `xlnt::workbook wb; xlnt::worksheet ws = wb.active_sheet(); char name[128] = { 0 }; strcpy(name, "Iwt Script log"); //changeText fun: change ansii tu utf-8 changeText(name); ws.title(name); //write data int row = 1; int rowList[5] = { 0 }; rowList[1] = row = print_Before(ws, l, row); rowList[2] = row = print_Test(ws, l, row + 1); rowList[3] = row = print_After(ws, l, row + 1);

//merge cell mergeCell(2, rowList[0] + 2, rowList[1] - rowList[0], ws); mergeCell(2, rowList[1] + 2, rowList[2] - rowList[1], ws); mergeCell(2, rowList[2] + 2, rowList[3] - rowList[2], ws);

changeText(l.file);
wb.save(l.file);` 
TThityou commented 1 year ago

another file data: filename=6VXLdF7x data=version