Class SheetNameFunction

  • All Implemented Interfaces:
    Serializable, Cloneable, EventListener, PageEventListener, ReportListener, Expression, Function, LayoutProcessorFunction, StructureFunction

    public class SheetNameFunction
    extends AbstractElementFormatFunction
    implements StructureFunction
    This way of defining a sheetname for elements is deprecated. Sheetnames should be declared or computed directly on the bands by specifiing a sheetname using the "computed-sheetname" style-property.
    This function is used to generate sheet names into table exports. Sheet names are generated on page breaks and have different representations depending the export type.
    To use this functionnality report configuration must set the property DECALRED_SHEETNAME_FUNCTION_KEY to point to an existing function or property accessible within the report.

    As for example using simple report definition:

         <!-- where sheetNameExpression is pointing to a valid function declared in this report -->
         <property name="org.pentaho.reporting.engine.classic.core.targets.table.TableWriter
    Cedric Pronzato
    See Also:
    Serialized Form