Set Report Font VI

Owning Palette: Report Generation VIs

Requires: Base Development System

Sets the font properties of the report, including those in the headers and footers.

Details  

 Add to the block diagram  Find on the palette
font settings source (Report Generation Toolkit) specifies the way in which you want to select font settings. The VI ignores this input for HTML reports.

0VI Inputs (default)—The VI uses the values you set in the font settings input. If you do not wire font settings, the VI uses the default font settings of the report class.
1Font Dialog Box—A dialog box appears that you can use to select font settings.
text color is the color of the text in the report. You can wire a color box constant to this input. The default is T, which leaves the text unchanged.
report in is a reference to the report whose appearance, data, and printing you want to control. Use the Create Report VI to generate this LabVIEW class object.
text options specifies how the text appears in the report.
Italic determines whether subsequent text appears in italics in the report. The default is Italic Unchanged.

0Italic Unchanged
1Italic On
2Italic Off
Strike Through determines whether subsequent text appears with a strikethrough effect in the report. The default is Strike Through Unchanged.

0Strike Through Unchanged
1Strike Through On
2Strike Through Off
Underline determines whether subsequent text appears underlined in the report. The default is Underline Unchanged.

0Underline Unchanged
1Underline On
2Underline Off
Bold determines whether subsequent text appears bold in the report. The default is Bold Unchanged.

0Bold Unchanged
1Bold On
2Bold Off
font settings indicates the font settings a report uses.
charset is the character set to use for report text. The default is -1.
weight is the thickness of the font. The default is -1.
name is the font name.
size is the font size.
error in describes error conditions that occur before this node runs. This input provides standard error in functionality.
report out is a reference to the report whose appearance, data, and printing you want to control. You can wire this output to other Report Generation VIs.
font out (Report Generation Toolkit) contains the font settings the VI uses for formatting, which you can use in other VIs. The values are valid for Microsoft Office reports only.
font name indicates the name of the font used, such as Times New Roman.
font size indicates the size at which the font appears, in points.
bold indicates whether the text is in bold.
italic indicates whether the text is in italics.
underline indicates whether the text is underlined.
strike through indicates whether the text is struck through.
font color indicates the color of the text.
error out contains error information. This output provides standard error out functionality.

Set Report Font Details

The available properties include italic, bold, strikethrough, underline, color, font name, font size, character set, and weight. The font you specify in the VI becomes the default font for the report.

If you use the Set Report Font VI to set a font in an HTML report, the <font> tag is used to set the font. This tag remains valid until the end of the file. There is no </font> used.

The table generated by the Append Table to Report VI does not use the font defined by the Set Report Font VI. The header and body texts of the table have different default fonts. You can use HTML tags to configure the text font for each cell of the table. Refer to the example at ni.com for more information about how to generate tables with different fonts.