Open topic with navigation
You are here: User Interface Elements - How to Use Each One > Creating Table Styles for Print Output
Creating Table Styles for Print Output
A table style sheet allows you to single-source your formatting by setting the properties in one place and reusing them wherever you insert tables in your project. But what if you want the tables in online output to look one way and the tables in your printed output to look another way? Here are two options… Solution #1—Two mediums: This is the recommended solution. You can have one table style sheet and use a medium to specify different settings for it—one medium is used for online output and another for print. Solution #2—Two table style sheets: You can insert a single table at each location, using a special version of the table style for print-based output. This solution requires you to have two table style sheets—one for online and one for print.
examples
Let's say you create a table style sheet with a pattern design that displays the table with alternating green rows. The problem is that for printed output, you need the rows to display in light gray.
Suppose you decide to use the recommended solution (mediums). Let's say the target for online output is called Target A, and the one for print output is called Target B. the first step is to make sure you have two mediums. Suppose Target A is using the "default" medium, where the rows are set to use a green background. With the properties for Target A already set, you now need to specify style properties for Target B. Therefore, in the Table Style Editor, instead of selecting the "default" medium, you can select another medium (e.g., the "print" medium) and change the properties for the rows to light gray. It's the same table style sheet and the same pattern that you are working with. The only difference is that one medium is telling Flare to display that table rows with a green background, and the other medium is telling it to use light gray. With Target A using the default medium and Target B using the other medium, the tables will display appropriately in each output.
If you decide instead to use the other solution (two table style sheets), you first create a table style sheet and specify settings in it appropriate for online output (e.g., green background for table rows). Then you create a secondary style sheet. This extra table style sheet will have design settings that are appropriate for printed output (e.g., light gray table rows). When you insert the table into your content (or edit an existing table), you select the original online table style and also select the special print version of the table style. If you generate any targets based on an online format (DotNet Help, HTML Help, WebHelp, WebHelp Plus, WebHelp AIR, WebHelp Mobile), the end user will see green rows in the table. However, if you generate any targets based on a print format (Adobe PDF, XHTML, Microsoft XPS, Microsoft Word, Adobe FrameMaker), the end user will see light gray rows in the table.
For more information see About Styles and Style Sheets.
- Open the table style sheet.
- Set the properties to be used for the online output:
- In the local toolbar of the Table Style Editor, do one of the following:
- Use the various tabs in the editor to set properties for that medium. See Editing Styles.
- Set the properties to be used for the printed output:
In the local toolbar of the Table Style Editor, click the down arrow in the Medium field and select Medium: print or Medium: [name of print medium].
- Use the various tabs in the editor to set properties for that medium.
- Press CTRL+S or click
to save your work.
-
Apply that table style to the appropriate tables throughout your project.
See Applying Styles to Topic Content.
- Associate the online medium with your online target:
Open the target to be used for online output (based on either the DotNet Help, HTML Help, WebHelp, WebHelp Plus, WebHelp AIR, or WebHelp Mobile format).
See Opening Targets.
- In the Target Editor, select the Advanced tab.
- In the Stylesheet Medium section, select the medium that you used for online output (e.g., default, non-print).
- Associate the print medium with your print target:
Open the target to be used for print output (based on either the Adobe PDF, XHTML, Microsoft XPS, Microsoft Word, or Adobe FrameMaker format).
- In the Target Editor, select the Advanced tab.
- In the Stylesheet Medium section, select the medium that you used for printed output (e.g., print).
- Press CTRL+SHIFT+S or click
to save your work.
-
Create one table style sheet to be used for online output and another to be used for printed output. See Creating New Style Sheets.
Tip: If you want both tables to share most of the same settings, you can create the online table style sheet first, make a copy of it for the print version, and then edit the settings in the copy as necessary. You can easily do this by selecting the original table style sheet in the Content Explorer (Resources\TableStyles folder), pressing CTRL+C, pressing CTRL+V, and renaming the copy to reflect your needs.
-
Insert a table into a topic or edit an existing table.
See Inserting Tables into Topics and Editing Table Properties.
- In the Insert Table dialog (if inserting a new table) or the Table Properties dialog (if editing an existing table), click Table Style and from the drop-down select the table style to be used for the online output.
-
Click the down arrow next to the Create Table Style button
and select Print Style. Click OK in the small dialog that opens. The Select Table Style dialog opens.
- From the list, select the table style to be used for the printed output.
- Click OK.
- In the Insert Table or Table Properties dialog, click OK.
- Press CTRL+SHIFT+S or click
to save your work.
Note: If you used print table styles in the past and want to remove them now in favor of the medium method, you can use an option in the Apply Table Style dialog in the Table Style Editor. When this option is enabled, print table styles will be removed from any tables updated by this dialog. See How to apply a table style sheet—multiple tables and files.
Note: You can also create special print versions of styles for other topic content. See Creating Topic Styles for Print Output.
See Also
Open topic with navigation