alaahong commented on issue #665:
URL: https://github.com/apache/fesod/issues/665#issuecomment-3477741358
Just review the original issue, is that a bug? @delei
@bengbengbalabalabeng
As header is fixed in entity, seems not required to reset as mutable.
If still treat as a bug, please list the sample behavior and expectation.
As Steps To Reproduce in this issue, seems it's caused by incorrect usage.
As original header grammar, user should declare the multiple header as below:
```
@Test
public void dynamicHeadWrite() throws Exception {
List<List<String>> multiHeader = new ArrayList<>();
multiHeader.add(Arrays.asList("stringTitle1",""));
multiHeader.add(Arrays.asList("stringTitle2","stringTitle2"));
multiHeader.add(Arrays.asList("stringTitle20", "stringTitle21"));
File target = TestFileUtil.createNewFile("dynamicHeadWrite" +
System.currentTimeMillis() + ".xlsx");
FastExcel.write(target)
.head(multiHeader)
.sheet()
.doWrite(Collections.emptyList());
}
```
Then the header will be merging as expected.
<img width="488" height="233" alt="Image"
src="https://github.com/user-attachments/assets/4f373eae-2c60-4f68-b986-2261c7041583"
/>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]