c# - How to use a Resource Image in Word document? -


i'm working on project auto-generate word , html reports. if don't provide image use in header of word report, customer wants use logo. have logo stored in resources of 1 of projects .jpg.

the method add picture range needs path string image, without overloads. know when file added resources of project, doesn't exist gets embedded inside .dll gets created. there no way utilize embedded resource in method?

do need copy file part of install directory? i'm thinking may easiest solution, should testing purposes?

i making lot harder needed be.

all have make image object resource:

image img = data.properties.resources.imagefile; 

then after that, have save it:

img.save(@"c:\destinationfolder\image.jpg"); 

now have file use want. won't matter if you're in debugging or not (as far application.run location) in event have in subfolder in project (as should), wouldn't have in same path @ end.

i way over-thinking other day when asked question. i'll able else out who's having same issue.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -