c# excel image

风格不统一 提交于 2019-12-25 04:38:10

问题


hi i have inserted image on an excel worksheet...

how is it possible to refer to this image from c#, thanks a lot!


回答1:


You will want to use the Clipboard object and the Excel Interop assembly. See here.




回答2:


There are two ways to do this: either start excel and get the image via the api, or open the excel file directly using the open xml format. I would recomend the latter. See:

http://msdn.microsoft.com/en-us/library/aa338205.aspx

for details on the format.



来源:https://stackoverflow.com/questions/1133892/c-sharp-excel-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!