Image doesn't show in the HTML-build

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
Tom
Propeller Head
Posts: 46
Joined: Fri Aug 11, 2006 6:39 am

Image doesn't show in the HTML-build

Post by Tom »

Hi,
I'm using a snippet as a kind of header in my topics. The snippet contains an image (.jpg). It shows in the preview, it works in DotNet-help but it doesn't show in the HTML-build. At least not in almost all topics. There is nevertheless (at least) one topic where it shows. But I can't figure out any difference in the code or the snippet.
What clue am I missing? :?
Tom
MC Hammer
Sr. Propeller Head
Posts: 225
Joined: Wed Aug 08, 2007 3:04 am
Location: In a galaxy far, far away

Re: Image doesn't show in the HTML-build

Post by MC Hammer »

Hi Tom
Do all of the topics where you have placed the snippet share the same path relatively the the snippet?
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
Tom
Propeller Head
Posts: 46
Joined: Fri Aug 11, 2006 6:39 am

Re: Image doesn't show in the HTML-build

Post by Tom »

Marie-Claire,
The Snippet is in the default recources-folder. I use different folders for the topics, but even in the folder where the one correct topic is stored, the other topics lack the image. When I add text to the same snippet, the text is shown correctly in the build.
I also inserted the snippet somewhere else in a topic (not as a 'header'). But even there the image won't show (other images are perfect).

b.t.w. I use version 3.1
Tom
MC Hammer
Sr. Propeller Head
Posts: 225
Joined: Wed Aug 08, 2007 3:04 am
Location: In a galaxy far, far away

Re: Image doesn't show in the HTML-build

Post by MC Hammer »

Hi Tom
I am afraid I cannot be of more help. I had a similar issue with some text snippets with conditions and submitted it as a bug with MadCap support. No solution was found re: this issue (I was told that some of my topics were a bit large and that my project was complex). It is interesting that if you add some text, it works :roll:.
Have you tried adding a different image to the one causing you trouble?
When you right-hand click on the CHM, more precisely on the location where the image is supposed to appear, do you get an URL to your image?
Sorry, I have no clue. Maybe someone else may be able to help...
Marie-Claire
Flare 2019 r2 - Windows 10 Pro - HTML5 help / "clean" XHTML output
Tom
Propeller Head
Posts: 46
Joined: Fri Aug 11, 2006 6:39 am

Re: Image doesn't show in the HTML-build

Post by Tom »

Marie-Claire,

The image itself isn't the point. Placed as a separate image in a topic it shows in the .chm.

When I look at the code (scource) in the .chm I get this:

.... <script src="../SkinSupport/MadCapHighlighter.js"> <![CDATA[ ]]></script>
</head>
<body>
<div style="width: 100%;position: relative;">
<p>vv</p>
</div>
<h1 style="font-size: 14pt;font-weight: normal;">Welkom bij Unit 4 Accounting</h1>
<p>
....

were: <div style="width: 100%;position: relative;">
<p>vv</p>
</div>
is the place for the snippet and the "vv" is the text I added to the snippet.

When I look at the code of the topics, there is a slight difference in the code between the topic that really shows the snippet-image in the build:

</head>
<body>
<script type="text/javascript" language="JavaScript1.2" src="../ehlpdhtm.js">
</script>
<MadCap:snippetBlock src="..\Resources\Snippets\U4Mulheader.flsnp" />
<h1>
<MadCap:keyword term="Artikelstatus" />
<MadCap:keyword term="Actief artikel" />
<MadCap:concept term="Artikelen" />
<MadCap:keyword term="Artikelen" />
<MadCap:keyword term="Diensten" />Werken met Artikelen en diensten</h1>
<p>

and the other topics where the snippet-image isn't shown:

</head>
<body>
<MadCap:snippetBlock src="..\Resources\Snippets\U4Mulheader.flsnp" />
<h1 style="font-size: 14pt;font-weight: normal;">Welkom bij Unit 4 Accounting</h1>
<p>

That's the only thing I can add to the information (apart from the fact that as you can see, it's an imported RoboHelp-project in the Dutch language. The snippet has been added manually after I imported the project). And I am regrettably absolute illitterate when it comes tot html/xml-code.

Tom
KevinDAmery
Propellus Maximus
Posts: 1985
Joined: Tue Jan 23, 2007 8:18 am
Location: Darn, I knew I was around here somewhere...

Re: Image doesn't show in the HTML-build

Post by KevinDAmery »

You may want to take a look at this procedure:

http://forums.madcapsoftware.com/viewto ... =13&t=7223
Until next time....
Image
Kevin Amery
Certified MAD for Flare
Tom
Propeller Head
Posts: 46
Joined: Fri Aug 11, 2006 6:39 am

Re: Image doesn't show in the HTML-build

Post by Tom »

Hi Kevin,
Your suggestion gave me in the end a working workaround.....
First your story of relative hyperlinks works only with inserting hyperlinks. You can select a topic or file with 'Inserting | hyperlink', and than make the path relative. But don't try to do the same in version 3.1 for images with 'Insert | Picture'. It results (at least for me) in an application crash.

But the story about hyperlinks made me to try the next: Place the image in the same folder as the snippet itself... Insert the image from there in the snippet... It worked :lol:.
But don't ask me why.... :?.

Tom
Post Reply