Class AbstractXlsExporterConfiguration

    • Constructor Detail

      • AbstractXlsExporterConfiguration

        public AbstractXlsExporterConfiguration()
    • Method Detail

      • isCreateCustomPalette

        public java.lang.Boolean isCreateCustomPalette()
        Description copied from interface: XlsExporterConfiguration
        Returns a boolean value specifying whether the standard color palette should be customized so that the XLS result uses the original report colors.

        The default state of this flag is given by the net.sf.jasperreports.export.xls.create.custom.palette property.

        The colors used in the result XLS are determined in the following manner:

        1. If this flag is not set, the nearest color from the standard XLS palette is chosen for a report color.
        2. If the flag is set, the nearest not yet modified color from the palette is chosen and modified to exactly match the report color. If all the colors from the palette are modified (the palette has a fixed size), the nearest color from the palette is chosen for further report colors.
        Specified by:
        isCreateCustomPalette in interface XlsExporterConfiguration
        See Also:
        XlsExporterConfiguration.PROPERTY_CREATE_CUSTOM_PALETTE
      • setCreateCustomPalette

        public void setCreateCustomPalette​(java.lang.Boolean isCreateCustomPalette)
      • getWorkbookTemplate

        public java.lang.String getWorkbookTemplate()
        Description copied from interface: XlsExporterConfiguration
        Setting that specifies the location of an existing workbook template. The content of an existing workbook document or template can be embedded into exported document if the template location is known. In this case the content of the template will be exported first and the content of the exported report will be appended to this one. Macros and other settings in the existing template will be also preserved in the generated document. Templates can be loaded from Excel template files (*.xlt) as well as from valid Excel documents (*.xls).

        This setting is used in the Excel exporter based on Apache POI APIs (JRXlsExporter). There's no similar property for the JRXlsxExporter.

        Specified by:
        getWorkbookTemplate in interface XlsExporterConfiguration
        See Also:
        XlsExporterConfiguration.PROPERTY_WORKBOOK_TEMPLATE
      • setWorkbookTemplate

        public void setWorkbookTemplate​(java.lang.String workbookTemplate)
      • setKeepWorkbookTemplateSheets

        public void setKeepWorkbookTemplateSheets​(java.lang.Boolean isKeepWorkbookTemplateSheets)
      • setMetadataTitle

        public void setMetadataTitle​(java.lang.String metadataTitle)
      • setMetadataAuthor

        public void setMetadataAuthor​(java.lang.String metadataAuthor)
      • setMetadataSubject

        public void setMetadataSubject​(java.lang.String metadataSubject)
      • setMetadataKeywords

        public void setMetadataKeywords​(java.lang.String metadataKeywords)
      • setMetadataApplication

        public void setMetadataApplication​(java.lang.String metadataApplication)
      • setEncryptionPassword

        public void setEncryptionPassword​(java.lang.String encryptionPassword)