32154678925 commented on issue #794:
URL: https://github.com/apache/fesod/issues/794#issuecomment-3742796955

   另外,如果不写入head,那么relativeHeadRowIndex()设置的偏移值则完全没用,
   `int newRowIndex = writeSheetHolder.getNewRowIndexAndStartDoWrite();
           if (writeSheetHolder.isNew() && 
!writeSheetHolder.getExcelWriteHeadProperty().hasHead()) {
               newRowIndex += 
writeContext.currentWriteHolder().relativeHeadRowIndex();
           }`
   
上述代码中的`writeSheetHolder.isNew()`和`!writeSheetHolder.getExcelWriteHeadProperty().hasHead()`导致了这个问题,是不是可以使用currentWriteHolder,并在相应的初始化过程例如currentSheet或currentTable中正确初始化相关内容,如head,并设置isNew为false
   <img width="1083" height="711" alt="Image" 
src="https://github.com/user-attachments/assets/94f2a7c1-9034-470e-bc2e-6ed2f4f3df31";
 />


-- 
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]

Reply via email to