|
|
@ -2643,7 +2643,7 @@ public class CoDelExcelTXServiceImpl implements CoDelExcelTXService { |
|
|
} |
|
|
} |
|
|
eorder.put("artNo", artNoContent); |
|
|
eorder.put("artNo", artNoContent); |
|
|
// 计算artNo内容的行数,动态设置行高 |
|
|
// 计算artNo内容的行数,动态设置行高 |
|
|
int lineCount = calculateLineCount(artNoContent); |
|
|
|
|
|
|
|
|
int lineCount = calculateLineCount(artNoContent, 60); |
|
|
// 基础行高16点 + 每额外行增加15点(可根据实际字体大小调整) |
|
|
// 基础行高16点 + 每额外行增加15点(可根据实际字体大小调整) |
|
|
int rowHeight = 16 + (lineCount - 1) * 15; |
|
|
int rowHeight = 16 + (lineCount - 1) * 15; |
|
|
// 设置当前行的行高(exportList的当前索引) |
|
|
// 设置当前行的行高(exportList的当前索引) |
|
|
@ -3743,7 +3743,7 @@ public class CoDelExcelTXServiceImpl implements CoDelExcelTXService { |
|
|
* @return 行数 |
|
|
* @return 行数 |
|
|
*/ |
|
|
*/ |
|
|
private int calculateLineCount(String content) { |
|
|
private int calculateLineCount(String content) { |
|
|
return calculateLineCount(content, 45); |
|
|
|
|
|
|
|
|
return calculateLineCount(content, 55); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|