问题
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