java - 使用 jxl api 将图像插入 Excel 单元格

标签 java excel jxl

我必须使用jxl api
将图像插入到Excel单元格中 我尝试过一些示例代码,但它会插入到某个协调器处,但我想插入到特定的单元格索引或单元格内部。
这是sample code我在搜索时发现的。

谁有解决办法吗?

最佳答案

来自 channel9 的讨论:

No version of Excel allows you to insert a picture into a cell. Pictures are inserted into the worksheet and will always float. One of the properties of a picture can be set to "move and size with cells" but that only moves or stretches the picture when the underlying rows and columns are inserted, deleted or sized. It does not confine a picture to a cell.

Here是有关如何从 Excel 执行此操作的分步过程,也许您可​​以通过编程方式模仿它。

关于java - 使用 jxl api 将图像插入 Excel 单元格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8307032/

相关文章:

vba - 如何引用 AutoCAD block

vba - Excel 2010 - 错误 : Cannot run the macro SelectCell using . onAction

python - 更改 OpenPyxl 中一行或一列的样式

java - 在 Unix 机器上的 Java 程序中使用 FilenameFilter 时,收到 ClassNotFoundException

java - 获取 RGB 值实时相机,错误 NullPointerException

Windows 7 中的 Java 7 文件删除

java - 避免在 JXL 调用 WritableWorkbook.close() 时停止

java - JXL 和 Apache POI 解析带有附加图像对象的 excel

java - 不支持文本对象。 Java excel API

java - 如何终止 BufferedInputStream .read() 调用