![]() ![]() ![]() Not sure how to make this work so any help is much appreciated. I don't know how to "retrieve the path of a resource" in a string form so I can just assign if to the. I have tried adding a new resource, I can access the resource Resource1.gsmLogo just fine but I can't assign it to ws.PageSetup.LeftHeaderPicture because it's read only. I would like to permanently attach the image to my project and assign its path to the ws. but I haven't been able to get that to work :/ When I get inside the app.publish folder and look at the folders structure I can't see the Graphics folder nor the gsmLogo.jpg. I think it's because the path is absolute. However, when I publish the solution and try to run in on a different machine I get an exception The above works fine when I am debugging the project from my machine. I have modified the properties of gsmLogo.jpg and set Build action to Embedded Resource, and Always copy to output directory. I have created a Graphics folder in the solution and added an existing item gsmLogo.jpg to it. I have obviously added a class to my solution and a few lines to start the formatting ws. studio 2012\Projects\ScreeningTemplate\ScreeningTemplate\Graphics\gsmLogo.jpg") In the add-in ThisWorkbook_StartUp event I am instantiating a custom class responsible for applying formatting to Sheet1. I have created an Excel 2010 Workbook project in Visual Studio Pro 2012. I have been searching and researching this for hours now but I am unable to solve this mystery. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |