Using Images in the Image path


Images are loaded both for preview mode and Web view using relative paths. When Help Builder displays images it uses the project root as its base directory. So, typically images are referenced as follows:

<img src='images/wcimage.gif'>

Relative paths will work for all scenarios:

  • Preview mode
  • Browser Preview
  • HTML generation
  • HTML Help File generation

Note that the Microsoft Help Compiler will embed images into a Help project only if the path is relative. If you reference an image like this: c:\http\images where this path is not relative, the image will be treated as an external reference and not embedded into the help file.

It's recommended that you copy all images you plan on using into the Images (or other relative) directory under the project root path. The image picker dialog will automatically detect a relative path and strip off the common project path.


© West Wind Techologies, 1996-2023 • Updated: 02/07/12
Comment or report problem with topic