I have created an HTML help file for an Access 2007 database
application, using some HTML documents, some of which have embedded
jpeg pictures.
The HTMLHelp compiles the .chm help file without any problems, but
when I view the help file, the images don't appear (i get the normal X
where the image is supposed to be - suggesting the image isn't
available).
I can't see anything obviously wrong with what I am doing. Has anyone
else experienced this problem?
I looked throught the HTMLHelp options to see if I needed to add the
jpegs separately, but there didn't appear to be any options to add
anything other than the HTML files, alias files and map files.
Any help would be highly appreciated.
Cheers
Matt
better newsgroups for HTMLHelp helpauthoring:
news://msnews.microsoft.com/microsoft.public.helpauthoring
news://msnews.microsoft.com/microsoft.public.vstudio.helpauthoring
However, things I see right away that might be the problem ..
(1) Check the HTML code and make sure that the graphics referenced in
the <img> tags have the correct file names and are in the correct
location.
(2) Add the path names of the graphics to the [FILES] list in your
project (.hhp) file. This will ensure that they are compiled into your
help file.
Note to have your "images" directory below your HTMLHelp project file
*.hhp level.
[FILES]
*.css
*.js
images\foobar-1.jpg
images\foobar-2.jpg
html\*.htm
or
images\*.jpg
Of course, you have to edit the project file in a text editor like
Notepad to do this.
Besides the files listed in the [FILES] section of the .hhp file, the
compiler pulls into the .chm file those local files that are directly
referenced in the HTML source and in the contents (.hhc) and index
(.hhk) files.
So, for example, most graphics are directly referenced in the HTML
topic files through <img> elements and don't need to be listed in the
[FILES] section. On the other hand, a graphic that is referenced only
in the style sheet (.css) file linked to those topic files *would*
need to be added to the [FILES] list, as otherwise the compiler would
be unaware of it.
HTH
Best regards
Ulrich Kulle
Microsoft MVP - Windows Help
***********************************
http://www.help-info.de
***********************************
Many thanks for the information, Ulrich.
I'll look into the suggestions you have given.
Cheers,
Matt
So each degree of good fortune which raises us in the world removes us
farther from truth, because we are most afraid of wounding those whose
affection is most useful and whose dislike is most dangerous. A prince may
be the byword of all Europe, and he alone will know nothing of it. I am not
astonished. To tell the truth is useful to those to whom it is spoken, but
disadvantageous to those who tell it, because it makes them disliked. Now
those who live with princes love their own interests more than that of the
prince whom they serve; and so they take care not to confer on him a benefit
so as to injure themselves.
This evil is no doubt greater and more common among the higher classes; but
the lower are not exempt from it, since there is always some advantage in
making men love us. Human life is thus only a perpetual illusion; men
deceive and flatter each other. No one speaks of us in our presence as he
does of us in our absence. Human society is founded on mutual deceit; few
friendships would endure if each knew what his friend said of him in his
absence, although he then spok