简体   繁体   English

使用jxl api将图像插入excel单元格

[英]Inserting image in to the excel cell using jxl api

I have to insert image in to the excel cell using jxl api 我必须使用jxl api将图像插入到Excel单元格中
i have tried with some sample code but it will insert at some coordinator, but i want in to at particular cell index or inside cell. 我尝试了一些示例代码但它会插入一些协调器,但我想要在特定的单元索引或单元格内。
here is sample code that i found while searching for this. 这是我在搜索时发现的示例代码

any one has solution for this. 任何人都有解决方案。
Thanks in advanced. 提前致谢。

From a discussion on channel9 : 从关于channel9的讨论:

No version of Excel allows you to insert a picture into a cell. 没有任何版本的Excel允许您将图片插入单元格中。 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 is a step-by-step procedure on how to do it from Excel, maybe you can mime it programmatically. 是一个关于如何从Excel执行操作的分步过程,也许您可​​以通过编程方式进行编程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM