How to insert a resources.resx file into Excel?
-
Hi,everyone! I want to insert an image into an Excel sheet,I know I could insert an file on disk into Excel sheet using these codes: xlWorkSheet.Shapes.AddPicture("C:\xl_pic.JPG", _ Microsoft.Office.Core.MsoTriState.msoFalse, _ Microsoft.Office.Core.MsoTriState.msoCTrue, 50, 50, 300, 45) But I don't know how can I insert an image of Project Resources.resx File ,could anyone give me some suggestion or help ? Thanks a lot !
-
Hi,everyone! I want to insert an image into an Excel sheet,I know I could insert an file on disk into Excel sheet using these codes: xlWorkSheet.Shapes.AddPicture("C:\xl_pic.JPG", _ Microsoft.Office.Core.MsoTriState.msoFalse, _ Microsoft.Office.Core.MsoTriState.msoCTrue, 50, 50, 300, 45) But I don't know how can I insert an image of Project Resources.resx File ,could anyone give me some suggestion or help ? Thanks a lot !
You can't import a resx file as an image. It's not in any image format and certainly not in a format that Excel understands. You have to extract the image yourself and use the method you used before or a variant of it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
You can't import a resx file as an image. It's not in any image format and certainly not in a format that Excel understands. You have to extract the image yourself and use the method you used before or a variant of it.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak