alaahong commented on PR #959:
URL: https://github.com/apache/fesod/pull/959#issuecomment-5075980882
> Hi, @alaahong
>
> Regarding the `sample-xls-password-buggy.xls` file you provided, could you
please provide the test case code?
>
> Is this related to the operating environment? I haven't been able to
reproduce this issue yet.
>
> * Java: OpenJDK1.8
> * OS: macOS Tahoe(26.5.2)
> * Fesod Version: 2.0.2-incubating
>
> **Test**
>
> ```java
> @Test
> void writeTest() {
> File testFile = TestFileUtil.createNewFile(TestFileUtil.getPath() +
"/fesod/test.xls");
>
> FesodSheet.write(testFile, DemoData.class)
> .excelType(ExcelTypeEnum.XLS)
> .password("1112222")
> .sheet()
> .doWrite(demoData(2));
> }
> ```
>
> **Result**
[test.xls](https://github.com/user-attachments/files/30351225/test.xls)
@delei Thanks for your double checking, here is the sample code, seems get
diff result than you provided.
<img width="1084" height="741" alt="image"
src="https://github.com/user-attachments/assets/3ba3fee5-ca3f-45e6-b98e-6143b9bbc6c2"
/>
<img width="953" height="614" alt="image"
src="https://github.com/user-attachments/assets/d24812f7-0a5d-46f9-b756-bb4be85cb3a0"
/>
[biff8.xls](https://github.com/user-attachments/files/30365932/biff8.xls)
Java: temurin-25
OS: Windows 11 (26200.8875)
Fesod Version: current main on top of 2.0.2-incubating
Sample Test
```
@Test
void writeBiff8Test(@TempDir Path tempDir) {
String fileName = getTempOutputPath(tempDir, "biff8.xls");
List<DemoData> data = new ArrayList<>();
for (int i = 0; i < 10; i++) {
DemoData d = new DemoData();
d.setString("String" + i);
d.setDate(new Date());
d.setDoubleData(0.56);
data.add(d);
}
FesodSheet.write(fileName, DemoData.class)
.excelType(ExcelTypeEnum.XLS)
.password("1112222")
.sheet()
.doWrite(data);
System.out.println(fileName);
System.out.println();
}
```
--
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]