Losing stylesheet properties when printing

This forum is for all Flare issues related to the Microsoft HTML Help target.
This target produces "CHM" files in the output.
Post Reply
cpylelo
Jr. Propeller Head
Posts: 1
Joined: Thu Jun 26, 2008 4:26 pm

Losing stylesheet properties when printing

Post by cpylelo »

We are outputting a .chm file. When we print all topics within a single TOC book (i.e we choose "Print the selected heading and all subtopics"), the printed output does not contain any of our stylesheet properties. For example, instead of an Arial, 10-pt font, the printed output is in Times New Roman. The strange thing is that if we print a single topic individually, the stylesheet properties come across in the printed output just fine. Any ideas on how to fix this? We are running Flare ver. 3.1.0.
Pete Lees
Sr. Propeller Head
Posts: 150
Joined: Thu Feb 09, 2006 12:33 pm
Location: Bracknell, Berkshire, UK

Re: Losing stylesheet properties when printing

Post by Pete Lees »

Hi, cpylelo,

The reason why this problem arises is described in Microsoft Knowledge Base article 830609.

According to article OUTH1009F in the Madcap Knowledge Base:
A change was made in Flare 3.1 generated .CHMs in how the stylesheet is linked to the topics and called to address issues people were having printing topics from .CHMs. You can see this in the .CHM topic’s source code.

<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252" />
<title>Topic</title>
<link href="ms-its:Manual.chm::/Resources/Stylesheets/Styles.css" rel="stylesheet" type="text/css" />
So, the workaround that is described in the Microsoft article was the default behaviour in Flare 3.1, at least initially. However, in Madcap article PATF3102, there is the following statement:
The way in which stylesheets and images were linked to topic files changed in Flare 3.1 See article OUTH1009F for details.
This patch restores the old way linking to images and stylesheets, but also provides a checkbox in the Advanced tab of the target editor to compile CHMs using the new link method if the user anticipates the need to have users print topics from the .CHM.
So, if you've installed the Patch for HTML Help Issues in Flare 3.1 (PATF3102) or its successor, Patch for Popup Window Issues in Flare 3.1 (PATF3103), you need to ensure that the required option in the Advanced tab is selected.

Pete
Post Reply