Google Группы больше не поддерживают новые публикации и подписки в сети Usenet. Опубликованный ранее контент останется доступен.

IMG in HTMLHelp not printing for 'selected heading and all subtopi

9 просмотров
Перейти к первому непрочитанному сообщению

pbab

не прочитано,
9 нояб. 2006 г., 10:31:0109.11.2006
I have created a help file with:

HTML Help workshop: 4.74.8702.0
HHCTRL: 5.02.3790.2744
ITIRCL: 5.02.3790.2453
ITSS: 5.02.3790.2453
On XP SP2

Everything seems to work fine and images DO print for most options, but if
you right mouse on the table of contents and print, the 'Print Topics' dialog
appears with two options:
- Print the selected topic
- Print the selected heading and all subtopics

If you choose the second option, images do not print. I have tried jpg and
gif as at first I thought it was an issue with the images. Any advice or
info? I see there seemed to be a multipage print issue in earlier versions
of hhctrl.ocx, but I think it was corrected.

Thanks in advance for any assistance

Rob Chandler [MVP]

не прочитано,
9 нояб. 2006 г., 18:38:2809.11.2006
Hi
Some ideas here
http://helpware.net/FAR/far_faq.htm#multipage_print
http://helpware.net/FAR/far_faq.htm#chmtopdf
Rob

--
Rob Chandler
MS Help MVP
http://Helpware.net
http://mshelpwiki.com
"pbab" <pb...@discussions.microsoft.com> wrote in message
news:3E309F5C-E953-4EC0...@microsoft.com...

pbab

не прочитано,
10 нояб. 2006 г., 09:40:0210.11.2006
Thanks for the tips - this showed me where to look at least as I am a
developer with little HTML Help Workshop experience.

I took a look at the ~hh*.htm file generated in the temp folder. I think
the issue is that when I reference images I am not giving a path since I had
put the images into the same folder as my original HTM files. When a
multipage htm document is generated it is in a different folder where the
images do not exist.

All images have the double quotes recomended by the other article and the
IMG tags are all on a sinlge line. Here is a line from my htm:
<img border="0" src="hubaddctl.jpg"></img>

So...Is there a variable or something I should be using in my IMG tag that I
am not aware of to represent the original path? The images are not copied to
the temp folder and the reference to them is not modified. I must be missing
something here and I don't see any recommendations in the HTML Help 'Help'
files.

Thanks,
Peter

pbab

не прочитано,
10 нояб. 2006 г., 10:20:0210.11.2006
Additionally, I have added a stylesheet link to all of my HTML files. It
works fine in the help until I try the print again. I get a message "The
file contains an invalid HTML tag" while trying the print. I assume it is
another path issue where it can not resolve the HREF to Style.css.

<LINK REL = "stylesheet" TYPE = "text/css" HREF = "Style.css">

I am only trying to generate chm files for a PC to run with a Windows app
that may not have internet/intranet access. I thought HHW would handle
running it all locally and manage the path references internally but I guess
not. Again, I may be missing something. Can anyone shed some light?

Thanks in advance

pbab

не прочитано,
10 нояб. 2006 г., 15:00:0210.11.2006
I have resolved both issues.

It looks like the HTML HELP engine is a little fussier than I expected for
multipage printing as it seems to parse the document separately to merge the
HTMs into one document.

** The Multipage issue: **
I had the border attribute first:
<IMG border="0" SRC="images\pagedirector.jpg" ></IMG>
I put SRC first (and then removed the quotes off border as I saw an example
without the quotes).
<IMG SRC="images\pagedirector.jpg" border=0></IMG>
this works now

** The stylesheet issue: **
I originally copied this line from the HHW help and just changed its values:
<LINK REL = "stylesheet" TYPE = "text/css" HREF = "css\Style.css">
On multipage print it threw errors until I notices spaces on each side of
the "=" sign. Once I removed the spaces it all worked fine.
<LINK REL="stylesheet" TYPE="text/css" HREF="css\Style.css">

So, HTML that is normally fine in a browser or for HELP single
viewing/printing may not behave the same in the case of a multipage print.
You will need to check the generated ~hh*.htm in your local temp to see what
the parser is doing to your HTML.

Rob Chandler [MVP]

не прочитано,
11 нояб. 2006 г., 06:19:1311.11.2006
Thanks PBab. Good detective work.

"pbab" <pb...@discussions.microsoft.com> wrote in message

news:CF1513FA-5882-4289...@microsoft.com...

0 новых сообщений