Overview of print functionality

You can use the PolicyCenter print functionality to print the list view parts of the data visible on a PolicyCenter screen. For example, you can print object lists such as the Activities list on the Desktop. You can control both the output format and which list view objects are printed. Most commonly, pages print as PDF. PolicyCenter also supports a limited comma-separated values (CSV) format. You can send the output of a print action to a local printer or save it to disk.

To support printing, a client computer must have a supported version of Acrobat Reader available.

Configuration parameters related to printing

The following optional print parameters in config.xml control the default print settings globally. For information on configuration parameters, see Application configuration parameters.

DefaultContentDispositionMode

Specifies the Content-Disposition setting to use if the content to be printed is returned to the browser. Must be either “attachment” (the default) or “inline”.

PrintFontFamilyName

Sets the name of font family to use for output. The default is “sans-serif”.

PrintFontSize

Sets the page font size. The default is 10 points.

PrintFOPUserConfigFile

(Optional) Sets the fully qualified path to a valid FOP user configuration file. Use this to specify or override the default FOP configuration.

PrintHeaderFontSize

Sets the header’s font size. The default is 16 points.

PrintLineHeight

Specifies the line height. The default is 14 points.

PrintListViewBlockSize Sets the block size of the list elements if printing a list with elements.

PrintListViewFontSize

Sets the font size for printing list views. The default is 10 points.

PrintMarginBottom

Sets the bottom margin. The default is .5 inches.

PrintMarginLeft

Specifies the size of left margin. The default is 1 inch.

PrintMarginRight

Specifies the size of right margin. The default is 1 inch.

PrintMarginTop

Specifies the size of top margin. The default is .5 inches.

PrintMaxNestedListViewSize Sets the number of rows at which to truncate long list views. The default is 100.
PrintMaxPDFInputFileSize Sets the size of the intermediate XML file to create if printing to PDF.

PrintPageHeight

Specifies the height of the page. The default is 8.5 inches.

PrintPageWidth

Specifies the width of the page. The default is 11 inches.

You can modify any of the page formatting attributes using property values defined in the CSS2 specification. The specification resides at the following location: http://www.w3.org/TR/REC-CSS2.

Security related to printing

The system permission lvprint allows a user to print the information that appears in a list view. .

Gosu classes for printing

The Gosu package gw.api.print provides classes that support print functionality. Guidewire recommends that your print configurations use only the ListViewPrintOptionPopupAction and PrintSettings classes.

The ListViewPrintOptionPopupAction class includes the following methods:
printListViewWithOptions(widgetId :String)
Begins the print list view process on the given list view widget.
printListViewWithOptions(widgetId :String, settings: PrintSettings)
Begins the print list view process on the given list view widget with given print settings.
printListViewOnlyWithOptions(widgetId :String)
Begins the print list view process on the given list view widget. Only the list view (no other widget elements from the source location) is output.
printListViewOnlyWithOptions(widgetId :String, title :String, settings:PrintSettings)
Begins the print list view process on the given list view widget, along with an optional title for the list view and specific print settings to apply. Only the list view (no other widget elements from the source location) is output.