print vs printOnly medium

This forum is for all Flare issues related to PDF, eBook, Microsoft Word, Adobe FrameMaker, XPS, and XHTML book targets.
Post Reply
bobmoon
Sr. Propeller Head
Posts: 259
Joined: Thu Mar 27, 2008 10:22 am
Location: Atlanta

print vs printOnly medium

Post by bobmoon »

<sigh> I've been going around and around with this, and I hope that there may be some consensus on this issue. A previous post brought up the issue of web help printing incorrectly because it also uses the settings in the print medium. I'm experiencing that with my H2s. The print medium specifies page-break-before:always so that my headings start on a new page in the PDF. However, when I print web help with that stylesheet, I get this printed output:

Heading Two Text
--- <new page> ---
Heading Two Text (repeated)
Remaining content

If I remove page-break-before:always from the print medium, the help prints fine. So, after reading up on it here, I tried renaming my print medium to printOnly (and found out BTW that Flare requires you to have an empty print {} medium).

That fixed the web help problem, but it seems to have broken the connection with the TableStyles I use for printed output. After I renamed my print medium to something else, I stopped getting the appropriate formatting on tables in the PDF output. PDF output instead uses the TableStyle formatting from the web help. Great!

I tinkered with the print TableStyle CSS (adding a printOnly medium, copying the relevant styles into my main CSS, using @import), but I'm stuck. The only foolproof resolution I can think of is splitting up the stylesheet for online and print targets.

Does anyone have more clarity on the issue than I do? It wouldn't take a lot....

Thanks,
Bob
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: print vs printOnly medium

Post by LTinker68 »

I think it's written somewhere in the help or one of the GUI screens that the table styles for print will only work with the print medium. I think it came up before because someone had a bunch of custom mediums and the print table styles weren't working.

So, if you're using table stylesheets and want their appearance to be different when printed from the web than when produced as print output, then you're going to have to use two topic stylesheets. If your tables can look the same when printing from the web and when produced as print output, then you can stick with one topic stylesheet.

Make sure you submit a bug report asking for the ability to specify the medium you want to associate with the table stylesheets when printing the tables. Submit the bug report at http://www.madcapsoftware.com/bugs/submit.aspx.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
Post Reply