fgl_report_setRenderingHints

Specifies the hints to be used in the rendering process.

Syntax

fgl_report_setRenderingHints(
   values om.SaxAttributes )
  1. values - Attribute set containing the key/value pairs.

Rendering hints

Table 1. Rendering hints
Rendering hint Purpose
grvRenderToBitmap, svgTextLengthAdjust, and grvUseEmbeddedFontMetrics

Optimize for GRV printing. See Optimize the rendering process.

psOptimize and psOptimizeUseDictionary

Optimize for Postscript printing. See Optimize the rendering process.

pxmlCacheImages

Disable image caching. See Optimize the rendering process.

pxmlChartStyle Specify style and color options for business graphs. Set to classic for backward compatibility with older versions of Genero Studio. See Specifying classic or default style.
processXMPOrientation Determine the orientation of an Image Box. Set to FALSE for backward compatibility with older versions of Genero Studio. See Configuring XMP metadata processing for images.
processXMPResolution Determine the resolution of an Image Box. See Configuring XMP metadata processing for images.
fglAutoformatTemplateURL, fglAutoformatLogoURL, fglAutoformatOrganizationName, fglAutoformatSelectionText, fglAutoformatKeyText, fglAutoformatPrintingInformationText, and fglAutoformatNumberOfFormColunms Set values for custom generic reports. See Create a custom generic report for simple list or form list.
pxmlSplitDocument Splits a large PDF, RTF, or Excelâ„¢ report into smaller files. See Split a report into smaller files.
pdfPreventPageRotation Backward compatibility: when set to TRUE, report pages do not rotate in PDF output, mimicking the behavior prior to Genero Studio 4.00. See Rotating PDF report pages.
pxmlColorizePadding Backward compatibility: when set to FALSE, the padding of an object uses the background color of the parent object, mimicking the behavior for padding an object prior to Genero Studio 3.20. See GST 3.20 upgrade guide.
xlsUse310SizingMechanism and xlsAlignmentIgnoringMethod

Configure the sizing and alignment of rows and columns in Excel reports to mimic the behavior prior to Genero Report Writer 3.20.

Excel rendering in Genero Report Writer 3.20 produces a larger number of rows and columns than previous versions. This provides a better WYSIWYG rendering of the document, but can corrupt the vertical alignment when pages are merged into a single sheet. Therefore, you may want to revert to Genero Report Writer 3.10 behavior.

xlsUse310SizingMechanism is FALSE by default. When set to TRUE, the column width and row height for Excel reports are computed as in Genero Report Writer 3.10 and earlier.

xlsAlignmentIgnoringMethod is 1 by default. When set to 0, rows and columns are aligned as in Genero Report Writer 3.10 and earlier.

To render your Excel reports as closely as possible to Genero Report Writer 3.10:

DEFINE renderingHints om.SaxAttributes
LET renderingHints=om.SaxAttributes.create()
CALL renderingHints.addAttribute("xlsUse310SizingMechanism",TRUE)
CALL renderingHints.addAttribute("xlsAlignmentIgnoringMethod",0)
CALL fgl_report_setRenderingHints(renderingHints)

Example

This sample code sets the svgTextLengthAdjust and grvUseEmbeddedFontMetrics hints:
DEFINE renderingHints om.SaxAttributes
LET renderingHints=om.SaxAttributes.create()
CALL renderingHints.addAttribute("svgTextLengthAdjust","SpacingAndGlyphs")
CALL renderingHints.addAttribute("grvUseEmbeddedFontMetrics","true")

CALL fgl_report_setRenderingHints(renderingHints)

For an example of Genero code using a reporting function, see Using report output functions. This example may not use the specific function discussed in this topic, however it provides details on where you would place this (and other) report output functions.