检索使用OLEDB从Excel文件中的图片

问题描述:

我有一个Excel片具有两个柱,一个是一个数,和第二列具有一个图像。
I想读从C#与OLEDB连接这些数据,我可以轻松读取数量,但照片不包含在第二列,所以在C#我刚刚获得第一列。

I have an Excel sheet with two column, one is a number , and second column have a picture. i want to read these data from c# with oledb connection, i can read number easily , but pictures is not contained in second column , so in c# i just get first column.

现在,我怎么能读取图像?我想提取从这个Excel工作表的数量和相关的图片。

now, how can i read the images ? i want to extract the numbers and related images from this excel sheet.

不可能的,我害怕。

图片不住细胞 - 你可以把它们的的单元格,可以调整其大小看起来像它们在细胞内,但是他们丝毫不占用小区。

Pictures do not live in cells -- you can place them over the cell, and you can size them to look like they are in the cell, but they in no way occupy that cell.

您可以操作使用VBA和COM互操作,而不是OLEDB工作表中的图像内容。

You can manipulate image contents of a worksheet using VBA and COM interop, but not OLEDB.