Well kind of… I’ve tried "SpecialFolder.GetResource(filename)" but it doesn’t work.
I finally tried a path in the app directoty that hasn’t any spqce in it and it doesn,t work either. So, you are right, that is not the problem. It was a bad assumption from my part.
It might have something to do with the access too the folder.
I will find another way to make sure the file is always in place…
The path name doesn’t exceed the maximum length of 259 characters; it has only 140. The folder is readable and writable (at least that’s what the folderitem properties are showing.
Creating a macro in word to add the picture works.
Sub Macro1()
'
' Macro1 Macro
'
'
Selection.InlineShapes.AddPicture FileName:= _
"C:\\Apache24\\htdocs\\windhub_DEMO\\webservice\\Windhub_WebReporter\\Windhub3_0_WebReporter Resources\oPhoto.jpg" _
, LinkToFile:=False, SaveWithDocument:=True
End Sub
Finally identified the problem… behind the keyboard… The Build step that had to load the file into the ressource directory was not able to find the file in the test environement.