0

Java JExcepAPI を使用して、"Rose" が赤で "Blue" が "Red Rose Blue Sky" というテキストを含む Excel ファイル セル (ラベル) を作成できるかどうか疑問に思っています。

これまでのところ、JExcelAPI は各セルのスタイルを全体としてのみ設定できるようです。そこに多くのスタイル (下線、色) を設定できるのは事実ですが、それらは常にセル全体に関連しています。セルの一部だけをスタイルする方法は?

CellFormat および関連する API はこれを表示しません http://jexcelapi.sourceforge.net/resources/javadocs/2_6_10/docs/jxl/format/CellFormat.html

関連する質問がここ (http://stackoverflow.com/a/8397419/1037626) で以前に尋ねられましたが、回答が役に立たないので、この質問をもう一度取り上げたいと思います。

4

1 に答える 1

1

It is not possible in the current version (2.6.10), even when you are copying existing workbook.

It is mentioned in the FAQ ("Does JXL support feature XXXXXX?).

You may use jxl.jar included into the distribution archive to verify if a particular feature is supported - create a workbook that uses this feature and perform a copy using JExcel:

 java -jar jxl.jar -rw TestFile.xls CopiedFile.xls

Then check if the feature is present in CopiedFile.xls with Excel. If it is here then it is supported (at least by copying).

于 2012-09-12T04:58:26.227 に答える