问题描述
在Excel中,我可以在单个单元格中有多个文本样式。有没有办法使用JExcelApi创建这样的文件?我没有看到任何东西到目前为止:setCellFormat是一个WritableCell的方法,似乎没有任何方式设置任何单个单元格内的格式。
In Excel, I can have multiple text styles in a single cell. Is there a way to create a file like this using JExcelApi? I'm not seeing anything so far: setCellFormat is a method on WritableCell, and there doesn't seem to be any way to set a format for anything within a single cell.
我只是错过了(很有可能!),还是没有实现?
Am I just missing it (quite possible!), or is this not implemented?
作为一个奖励:这将是多么难以实现?有没有其他Excel导出库实现这一点,从中我可以借用代码?
As a bonus: how hard would this be to implement? Is there any other Excel-export library which does implement this, from which I could borrow the code?
推荐答案
@Cosmic有另一种方式来阅读这个问题:单个单元格的单独区域中有多种格式。
@Cosmic There is another way to read that question: multiple formats in separate areas of a single cell.
喜欢:斜体 粗体文本以斜体和粗体分别设置为不同的样式,即粗体不是斜体。
Like: "Italics Bold Text" with "italics" and "bold" set in different style, i.e. bold not italics, respectively.
可以在JExcelAPI中完成吗?我不知道这个。任何人?
Can this be done in JExcelAPI? I am not aware of this. Anyone?
这篇关于JExcelApi:一个单元格中的多种格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!