Class AbstractXlsReportConfiguration
- java.lang.Object
-
- net.sf.jasperreports.export.SimpleCommonExportConfiguration
-
- net.sf.jasperreports.export.SimpleReportExportConfiguration
-
- net.sf.jasperreports.export.AbstractXlsReportConfiguration
-
- All Implemented Interfaces:
CommonExportConfiguration,ReportExportConfiguration,XlsReportConfiguration
- Direct Known Subclasses:
SimpleOdsReportConfiguration,SimpleXlsMetadataReportConfiguration,SimpleXlsReportConfiguration,SimpleXlsxMetadataReportConfiguration
public class AbstractXlsReportConfiguration extends SimpleReportExportConfiguration implements XlsReportConfiguration
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.export.CommonExportConfiguration
PROPERTY_EXPORT_CONFIGURATION_OVERRIDE_REPORT_HINTS
-
Fields inherited from interface net.sf.jasperreports.export.ReportExportConfiguration
PROPERTY_IGNORE_PAGE_MARGINS
-
Fields inherited from interface net.sf.jasperreports.export.XlsReportConfiguration
FORMAT_PATTERN_PREFIX, PROPERTY_AUTO_FIT_PAGE_HEIGHT, PROPERTY_CELL_HIDDEN, PROPERTY_CELL_LOCKED, PROPERTY_COLLAPSE_ROW_SPAN, PROPERTY_COLUMN_WIDTH_RATIO, PROPERTY_DEFINED_NAMES_PREFIX, PROPERTY_DETECT_CELL_TYPE, PROPERTY_FIRST_PAGE_NUMBER, PROPERTY_FIT_HEIGHT, PROPERTY_FIT_WIDTH, PROPERTY_FONT_SIZE_FIX_ENABLED, PROPERTY_FORCE_PAGE_BREAKS, PROPERTY_FREEZE_COLUMN, PROPERTY_FREEZE_ROW, PROPERTY_IGNORE_ANCHORS, PROPERTY_IGNORE_CELL_BACKGROUND, PROPERTY_IGNORE_CELL_BORDER, PROPERTY_IGNORE_GRAPHICS, PROPERTY_IGNORE_HYPERLINK, PROPERTY_IGNORE_TEXT_FORMATTING, PROPERTY_IMAGE_ANCHOR_TYPE, PROPERTY_IMAGE_BORDER_FIX_ENABLED, PROPERTY_MAXIMUM_ROWS_PER_SHEET, PROPERTY_ONE_PAGE_PER_SHEET, PROPERTY_PAGE_SCALE, PROPERTY_PASSWORD, PROPERTY_PRINT_FOOTER_MARGIN, PROPERTY_PRINT_HEADER_MARGIN, PROPERTY_PRINT_PAGE_BOTTOM_MARGIN, PROPERTY_PRINT_PAGE_HEIGHT, PROPERTY_PRINT_PAGE_LEFT_MARGIN, PROPERTY_PRINT_PAGE_RIGHT_MARGIN, PROPERTY_PRINT_PAGE_TOP_MARGIN, PROPERTY_PRINT_PAGE_WIDTH, PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS, PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, PROPERTY_SHEET_DIRECTION, PROPERTY_SHEET_FOOTER_CENTER, PROPERTY_SHEET_FOOTER_LEFT, PROPERTY_SHEET_FOOTER_RIGHT, PROPERTY_SHEET_HEADER_CENTER, PROPERTY_SHEET_HEADER_LEFT, PROPERTY_SHEET_HEADER_RIGHT, PROPERTY_SHEET_NAMES_PREFIX, PROPERTY_SHEET_TAB_COLOR, PROPERTY_SHOW_GRIDLINES, PROPERTY_SHRINK_TO_FIT, PROPERTY_USE_TIMEZONE, PROPERTY_WHITE_PAGE_BACKGROUND, PROPERTY_WRAP_TEXT
-
-
Constructor Summary
Constructors Constructor Description AbstractXlsReportConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FloatgetColumnWidthRatio()Setting used to adjust all column widths in a document or sheet with the same width ratio, in order to get column width values suitable for Excel output.JRPropertiesUtil.PropertySuffix[]getDefinedNames()Returns an array of strings representing defined names in the generated workbook.IntegergetFirstPageNumber()Setting that specifies the first page number in the page setup dialog.IntegergetFitHeight()This setting indicates the number of pages height to fit the sheet in.IntegergetFitWidth()This setting indicates the number of pages wide to fit the sheet in.Map<String,String>getFormatPatternsMap()This export configuration setting should be used when converting java format patterns to equivalent proprietary format patterns.StringgetFreezeColumn()Indicates the name of the first unlocked column in document's sheets.IntegergetFreezeRow()Specifies the index of the first unlocked row in document's sheets.ImageAnchorTypeEnumgetImageAnchorType()Specifies the image anchor type.IntegergetMaxRowsPerSheet()Returns an integer value specifying the maximum number of rows allowed to be shown in a sheet.IntegergetPageScale()This setting is used to adjust the page content to a given percent of the normal size in the print preview pane.StringgetPassword()Returns a String value representing the password in case of password protected documents.IntegergetPrintFooterMargin()Specifies the sheet footer margin in print preview pane, measured in pixels.IntegergetPrintHeaderMargin()Specifies the sheet header margin in print preview pane, measured in pixels.IntegergetPrintPageBottomMargin()Specifies the page bottom margin in print preview pane, measured in pixels.IntegergetPrintPageHeight()Specifies the page height in print preview pane, measured in pixels.IntegergetPrintPageLeftMargin()Specifies the page left margin in print preview pane, measured in pixels.IntegergetPrintPageRightMargin()Specifies the page right margin in print preview pane, measured in pixels.IntegergetPrintPageTopMargin()Specifies the page top margin in print preview pane, measured in pixels.IntegergetPrintPageWidth()Specifies the page width in print preview pane, measured in pixels.RunDirectionEnumgetSheetDirection()This setting indicates if the sheet is left-to-right or right-to-left oriented.StringgetSheetFooterCenter()This property stores the text content of the sheet footer's center.StringgetSheetFooterLeft()This property stores the text content of the sheet footer's left side.StringgetSheetFooterRight()This property stores the text content of the sheet footer's right side.StringgetSheetHeaderCenter()This property stores the text content of the sheet header's center.StringgetSheetHeaderLeft()This property stores the text content of the sheet header's left side.StringgetSheetHeaderRight()This property stores the text content of the sheet header's right side.String[]getSheetNames()Returns an array of strings representing custom sheet names.ColorgetSheetTabColor()This setting is used to set the tab color of the sheets.BooleanisAutoFitPageHeight()Flag that specifies whether the fit height should be estimated automatically.BooleanisAutoFitRow()BooleanisCellHidden()This flag indicates whether the cell content is hidden.BooleanisCellLocked()This flag indicates whether the cell is locked.BooleanisCollapseRowSpan()Flag for collapsing row span and avoid merging cells across rows.BooleanisDetectCellType()Flag used to indicate whether the exporter should take into consideration the type of the original text field expressions and set the cell types and values accordingly.BooleanisFontSizeFixEnabled()Flag for decreasing font size so that texts fit into the specified cell height.BooleanisForcePageBreaks()Flag that specifies whether the page breaks to be marked automatically on each sheet.BooleanisIgnoreAnchors()Flag that indicates whether local anchors should be ignored when elements are exported to Excel.BooleanisIgnoreCellBackground()Flag for ignoring the cell background color.BooleanisIgnoreCellBorder()Flag for ignoring the cell border.BooleanisIgnoreGraphics()Flag for ignoring graphic elements and exporting text elements only.BooleanisIgnoreHyperlink()BooleanisIgnorePageMargins()Indicates whether page margins should be ignored when the report is exported using a grid-based exporterBooleanisIgnoreTextFormatting()Flag that indicates whether the text elements should be exported without text formatting features, such as bold, italic, underline, text color, backcolor, etc.BooleanisImageBorderFixEnabled()Flag for forcing the minimum image padding to 1 pixel, to avoid situations where the image hides the cell border.BooleanisOnePagePerSheet()Returns a boolean value specifying whether each report page should be written in a different XLS sheet.BooleanisRemoveEmptySpaceBetweenColumns()Returns a boolean value specifying whether the empty spaces that could appear between columns should be removed or not.BooleanisRemoveEmptySpaceBetweenRows()Returns a boolean value specifying whether the empty spaces that could appear between rows should be removed or not.BooleanisShowGridLines()Flag that specifies if the gridlines in a given sheet are shown.BooleanisShrinkToFit()Flag that indicates whether the text font size should be decreased in order to keep the entire text visible in the cell.BooleanisUseTimeZone()Flag that determines whether date values are to be translated to the timezone that was used to fill the report.BooleanisWhitePageBackground()Returns a boolean value specifying whether the page background should be white or the default XLS background color.BooleanisWrapText()This flag indicates whether text wrapping is allowed in a given cell.voidsetAutoFitPageHeight(Boolean isAutoFitPageHeight)voidsetAutoFitRow(Boolean isAutoFitRow)voidsetCellHidden(Boolean isCellHidden)voidsetCellLocked(Boolean isCellLocked)voidsetCollapseRowSpan(Boolean isCollapseRowSpan)voidsetColumnWidthRatio(Float columnWidthRatio)voidsetDefinedNames(JRPropertiesUtil.PropertySuffix[] definedNames)voidsetDetectCellType(Boolean isDetectCellType)voidsetFirstPageNumber(Integer firstPageNumber)voidsetFitHeight(Integer fitHeight)voidsetFitWidth(Integer fitWidth)voidsetFontSizeFixEnabled(Boolean isFontSizeFixEnabled)voidsetForcePageBreaks(Boolean isForcePageBreaks)voidsetFormatPatternsMap(Map<String,String> formatPatternsMap)voidsetFreezeColumn(String freezeColumn)voidsetFreezeRow(Integer freezeRow)voidsetIgnoreAnchors(Boolean isIgnoreAnchors)voidsetIgnoreCellBackground(Boolean isIgnoreCellBackground)voidsetIgnoreCellBorder(Boolean isIgnoreCellBorder)voidsetIgnoreGraphics(Boolean isIgnoreGraphics)voidsetIgnoreHyperlink(Boolean isIgnoreHyperlink)voidsetIgnorePageMargins(Boolean isIgnorePageMargins)voidsetIgnoreTextFormatting(Boolean isIgnoreTextFormatting)voidsetImageAnchorType(ImageAnchorTypeEnum imageAnchorType)voidsetImageBorderFixEnabled(Boolean isImageBorderFixEnabled)voidsetMaxRowsPerSheet(Integer maxRowsPerSheet)voidsetOnePagePerSheet(Boolean isOnePagePerSheet)voidsetPageScale(Integer pageScale)voidsetPassword(String password)voidsetPrintFooterMargin(Integer printFooterMargin)voidsetPrintHeaderMargin(Integer printHeaderMargin)voidsetPrintPageBottomMargin(Integer printPageBottomMargin)voidsetPrintPageHeight(Integer printPageHeight)voidsetPrintPageLeftMargin(Integer printPageLeftMargin)voidsetPrintPageRightMargin(Integer printPageRightMargin)voidsetPrintPageTopMargin(Integer printPageTopMargin)voidsetPrintPageWidth(Integer printPageWidth)voidsetRemoveEmptySpaceBetweenColumns(Boolean isRemoveEmptySpaceBetweenColumns)voidsetRemoveEmptySpaceBetweenRows(Boolean isRemoveEmptySpaceBetweenRows)voidsetSheetDirection(RunDirectionEnum sheetDirection)voidsetSheetFooterCenter(String sheetFooterCenter)voidsetSheetFooterLeft(String sheetFooterLeft)voidsetSheetFooterRight(String sheetFooterRight)voidsetSheetHeaderCenter(String sheetHeaderCenter)voidsetSheetHeaderLeft(String sheetHeaderLeft)voidsetSheetHeaderRight(String sheetHeaderRight)voidsetSheetNames(String[] sheetNames)voidsetSheetTabColor(Color tabColor)voidsetShowGridLines(Boolean isShowGridLines)voidsetShrinkToFit(Boolean isShrinkToFit)voidsetUseTimeZone(Boolean isUseTimeZone)voidsetWhitePageBackground(Boolean isWhitePageBackground)voidsetWrapText(Boolean isWrapText)-
Methods inherited from class net.sf.jasperreports.export.SimpleReportExportConfiguration
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex, setEndPageIndex, setExporterFilter, setHyperlinkProducerFactory, setOffsetX, setOffsetY, setPageIndex, setProgressMonitor, setStartPageIndex
-
Methods inherited from class net.sf.jasperreports.export.SimpleCommonExportConfiguration
isOverrideHints, setOverrideHints
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.export.CommonExportConfiguration
isOverrideHints
-
Methods inherited from interface net.sf.jasperreports.export.ReportExportConfiguration
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex
-
-
-
-
Method Detail
-
isOnePagePerSheet
public Boolean isOnePagePerSheet()
Description copied from interface:XlsReportConfigurationReturns a boolean value specifying whether each report page should be written in a different XLS sheet.- Specified by:
isOnePagePerSheetin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_ONE_PAGE_PER_SHEET
-
setOnePagePerSheet
public void setOnePagePerSheet(Boolean isOnePagePerSheet)
-
isRemoveEmptySpaceBetweenColumns
public Boolean isRemoveEmptySpaceBetweenColumns()
Description copied from interface:XlsReportConfigurationReturns a boolean value specifying whether the empty spaces that could appear between columns should be removed or not.- Specified by:
isRemoveEmptySpaceBetweenColumnsin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS
-
setRemoveEmptySpaceBetweenColumns
public void setRemoveEmptySpaceBetweenColumns(Boolean isRemoveEmptySpaceBetweenColumns)
-
isRemoveEmptySpaceBetweenRows
public Boolean isRemoveEmptySpaceBetweenRows()
Description copied from interface:XlsReportConfigurationReturns a boolean value specifying whether the empty spaces that could appear between rows should be removed or not.- Specified by:
isRemoveEmptySpaceBetweenRowsin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWS
-
setRemoveEmptySpaceBetweenRows
public void setRemoveEmptySpaceBetweenRows(Boolean isRemoveEmptySpaceBetweenRows)
-
isWhitePageBackground
public Boolean isWhitePageBackground()
Description copied from interface:XlsReportConfigurationReturns a boolean value specifying whether the page background should be white or the default XLS background color. This background may vary depending on the XLS viewer properties or the operating system color scheme.- Specified by:
isWhitePageBackgroundin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_WHITE_PAGE_BACKGROUND
-
setWhitePageBackground
public void setWhitePageBackground(Boolean isWhitePageBackground)
-
isDetectCellType
public Boolean isDetectCellType()
Description copied from interface:XlsReportConfigurationFlag used to indicate whether the exporter should take into consideration the type of the original text field expressions and set the cell types and values accordingly.Text fields having numerical or date expressions save type and formatting (format pattern, locale and time zone) information in the
JasperPrint/JRPrintTextobject created by the report fill process.When this flag is set, the exporter will parse back the
Stringvalue of numerical/date texts. Numerical/date cells will be created and the original pattern of the text will be included as part of the cell style.Note that this mechanism would not work when the text field overflows and splits on two pages/columns. Also, it is required that the text field expression has a numerical or date type set.
This flag is off by default to ensure backwards compatibility.
- Specified by:
isDetectCellTypein interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_DETECT_CELL_TYPE
-
setDetectCellType
public void setDetectCellType(Boolean isDetectCellType)
-
isFontSizeFixEnabled
public Boolean isFontSizeFixEnabled()
Description copied from interface:XlsReportConfigurationFlag for decreasing font size so that texts fit into the specified cell height.- Specified by:
isFontSizeFixEnabledin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_FONT_SIZE_FIX_ENABLED
-
setFontSizeFixEnabled
public void setFontSizeFixEnabled(Boolean isFontSizeFixEnabled)
-
isImageBorderFixEnabled
public Boolean isImageBorderFixEnabled()
Description copied from interface:XlsReportConfigurationFlag for forcing the minimum image padding to 1 pixel, to avoid situations where the image hides the cell border.- Specified by:
isImageBorderFixEnabledin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_IMAGE_BORDER_FIX_ENABLED
-
setImageBorderFixEnabled
public void setImageBorderFixEnabled(Boolean isImageBorderFixEnabled)
-
isIgnoreGraphics
public Boolean isIgnoreGraphics()
Description copied from interface:XlsReportConfigurationFlag for ignoring graphic elements and exporting text elements only.- Specified by:
isIgnoreGraphicsin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_IGNORE_GRAPHICS
-
setIgnoreGraphics
public void setIgnoreGraphics(Boolean isIgnoreGraphics)
-
isCollapseRowSpan
public Boolean isCollapseRowSpan()
Description copied from interface:XlsReportConfigurationFlag for collapsing row span and avoid merging cells across rows.- Specified by:
isCollapseRowSpanin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_COLLAPSE_ROW_SPAN
-
setCollapseRowSpan
public void setCollapseRowSpan(Boolean isCollapseRowSpan)
-
isIgnoreCellBorder
public Boolean isIgnoreCellBorder()
Description copied from interface:XlsReportConfigurationFlag for ignoring the cell border.- Specified by:
isIgnoreCellBorderin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_IGNORE_CELL_BORDER
-
setIgnoreCellBorder
public void setIgnoreCellBorder(Boolean isIgnoreCellBorder)
-
isIgnoreCellBackground
public Boolean isIgnoreCellBackground()
Description copied from interface:XlsReportConfigurationFlag for ignoring the cell background color.- Specified by:
isIgnoreCellBackgroundin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_IGNORE_CELL_BACKGROUND
-
setIgnoreCellBackground
public void setIgnoreCellBackground(Boolean isIgnoreCellBackground)
-
isWrapText
public Boolean isWrapText()
Description copied from interface:XlsReportConfigurationThis flag indicates whether text wrapping is allowed in a given cell.- Specified by:
isWrapTextin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_WRAP_TEXT
-
setWrapText
public void setWrapText(Boolean isWrapText)
-
isCellLocked
public Boolean isCellLocked()
Description copied from interface:XlsReportConfigurationThis flag indicates whether the cell is locked.- Specified by:
isCellLockedin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_CELL_LOCKED
-
setCellLocked
public void setCellLocked(Boolean isCellLocked)
-
isCellHidden
public Boolean isCellHidden()
Description copied from interface:XlsReportConfigurationThis flag indicates whether the cell content is hidden.- Specified by:
isCellHiddenin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_CELL_HIDDEN
-
setCellHidden
public void setCellHidden(Boolean isCellHidden)
-
getMaxRowsPerSheet
public Integer getMaxRowsPerSheet()
Description copied from interface:XlsReportConfigurationReturns an integer value specifying the maximum number of rows allowed to be shown in a sheet. When set, a new sheet is created for the remaining rows to be displayed. Negative values or zero means that no limit has been set.- Specified by:
getMaxRowsPerSheetin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_MAXIMUM_ROWS_PER_SHEET
-
setMaxRowsPerSheet
public void setMaxRowsPerSheet(Integer maxRowsPerSheet)
-
isIgnorePageMargins
public Boolean isIgnorePageMargins()
Description copied from interface:XlsReportConfigurationIndicates whether page margins should be ignored when the report is exported using a grid-based exporterIf set to
true, any page in the document will be exported without taking into account its margins.- Specified by:
isIgnorePageMarginsin interfaceXlsReportConfiguration- See Also:
ReportExportConfiguration.PROPERTY_IGNORE_PAGE_MARGINS
-
setIgnorePageMargins
public void setIgnorePageMargins(Boolean isIgnorePageMargins)
-
getSheetHeaderLeft
public String getSheetHeaderLeft()
Description copied from interface:XlsReportConfigurationThis property stores the text content of the sheet header's left side.- Specified by:
getSheetHeaderLeftin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHEET_HEADER_LEFT
-
setSheetHeaderLeft
public void setSheetHeaderLeft(String sheetHeaderLeft)
-
getSheetHeaderCenter
public String getSheetHeaderCenter()
Description copied from interface:XlsReportConfigurationThis property stores the text content of the sheet header's center.- Specified by:
getSheetHeaderCenterin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHEET_HEADER_CENTER
-
setSheetHeaderCenter
public void setSheetHeaderCenter(String sheetHeaderCenter)
-
getSheetHeaderRight
public String getSheetHeaderRight()
Description copied from interface:XlsReportConfigurationThis property stores the text content of the sheet header's right side.- Specified by:
getSheetHeaderRightin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHEET_HEADER_RIGHT
-
setSheetHeaderRight
public void setSheetHeaderRight(String sheetHeaderRight)
-
getSheetFooterLeft
public String getSheetFooterLeft()
Description copied from interface:XlsReportConfigurationThis property stores the text content of the sheet footer's left side.- Specified by:
getSheetFooterLeftin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHEET_FOOTER_LEFT
-
setSheetFooterLeft
public void setSheetFooterLeft(String sheetFooterLeft)
-
getSheetFooterCenter
public String getSheetFooterCenter()
Description copied from interface:XlsReportConfigurationThis property stores the text content of the sheet footer's center.- Specified by:
getSheetFooterCenterin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHEET_FOOTER_CENTER
-
setSheetFooterCenter
public void setSheetFooterCenter(String sheetFooterCenter)
-
getSheetFooterRight
public String getSheetFooterRight()
Description copied from interface:XlsReportConfigurationThis property stores the text content of the sheet footer's right side.- Specified by:
getSheetFooterRightin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHEET_FOOTER_RIGHT
-
setSheetFooterRight
public void setSheetFooterRight(String sheetFooterRight)
-
getPassword
public String getPassword()
Description copied from interface:XlsReportConfigurationReturns a String value representing the password in case of password protected documents.- Specified by:
getPasswordin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_PASSWORD
-
setPassword
public void setPassword(String password)
-
getSheetNames
public String[] getSheetNames()
Description copied from interface:XlsReportConfigurationReturns an array of strings representing custom sheet names. This is useful when used with the isOnePagePerSheet() setting.- Specified by:
getSheetNamesin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHEET_NAMES_PREFIX
-
setSheetNames
public void setSheetNames(String[] sheetNames)
-
getFormatPatternsMap
public Map<String,String> getFormatPatternsMap()
Description copied from interface:XlsReportConfigurationThis export configuration setting should be used when converting java format patterns to equivalent proprietary format patterns. It should be constructed as a Map containing java format patterns as keys and the correspondent proprietary format pattern as correspondent value- Specified by:
getFormatPatternsMapin interfaceXlsReportConfiguration- See Also:
HSSFDataFormat
-
isIgnoreHyperlink
public Boolean isIgnoreHyperlink()
- Specified by:
isIgnoreHyperlinkin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_IGNORE_HYPERLINK
-
setIgnoreHyperlink
public void setIgnoreHyperlink(Boolean isIgnoreHyperlink)
-
isIgnoreAnchors
public Boolean isIgnoreAnchors()
Description copied from interface:XlsReportConfigurationFlag that indicates whether local anchors should be ignored when elements are exported to Excel.- Specified by:
isIgnoreAnchorsin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_IGNORE_ANCHORS
-
setIgnoreAnchors
public void setIgnoreAnchors(Boolean isIgnoreAnchors)
-
getFitWidth
public Integer getFitWidth()
Description copied from interface:XlsReportConfigurationThis setting indicates the number of pages wide to fit the sheet in.- Specified by:
getFitWidthin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_FIT_WIDTH
-
setFitWidth
public void setFitWidth(Integer fitWidth)
-
getFitHeight
public Integer getFitHeight()
Description copied from interface:XlsReportConfigurationThis setting indicates the number of pages height to fit the sheet in.- Specified by:
getFitHeightin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_FIT_WIDTH
-
setFitHeight
public void setFitHeight(Integer fitHeight)
-
getPageScale
public Integer getPageScale()
Description copied from interface:XlsReportConfigurationThis setting is used to adjust the page content to a given percent of the normal size in the print preview pane. Allowed values are positive integers from 10 to 400, representing percents of the normal size. This setting overrides theXlsReportConfiguration.getFitWidth()andXlsReportConfiguration.getFitHeight()settings.- Specified by:
getPageScalein interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_PAGE_SCALE
-
setPageScale
public void setPageScale(Integer pageScale)
-
getSheetDirection
public RunDirectionEnum getSheetDirection()
Description copied from interface:XlsReportConfigurationThis setting indicates if the sheet is left-to-right or right-to-left oriented. Possible values are:- LTR - meaning left-to-right
- RTL - meaning right-to-left
- Specified by:
getSheetDirectionin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHEET_DIRECTION
-
setSheetDirection
public void setSheetDirection(RunDirectionEnum sheetDirection)
-
getColumnWidthRatio
public Float getColumnWidthRatio()
Description copied from interface:XlsReportConfigurationSetting used to adjust all column widths in a document or sheet with the same width ratio, in order to get column width values suitable for Excel output. Usually column widths are measured by Excel in Normal style default character width units, while the JR engine uses pixels as default size units. When exporting the report to the Excel output format, the pixel-to-character width translation depends on the normal style default character width provided by the Excel instance, so it cannot be always accurately fitted. In this case, one can alter the generated column widths by setting this property with a float value representing the adjustment ratio.- Specified by:
getColumnWidthRatioin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_COLUMN_WIDTH_RATIO
-
setColumnWidthRatio
public void setColumnWidthRatio(Float columnWidthRatio)
-
isUseTimeZone
public Boolean isUseTimeZone()
Description copied from interface:XlsReportConfigurationFlag that determines whether date values are to be translated to the timezone that was used to fill the report.By default, date values are exported to Excel using the default timezone of the system. Setting this to
trueinstructs the exporter to use he report fill timezone to export date values.This only has effect when
XlsReportConfiguration.isDetectCellType()is set.- Specified by:
isUseTimeZonein interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_USE_TIMEZONE
-
setUseTimeZone
public void setUseTimeZone(Boolean isUseTimeZone)
-
getFirstPageNumber
public Integer getFirstPageNumber()
Description copied from interface:XlsReportConfigurationSetting that specifies the first page number in the page setup dialog.- Specified by:
getFirstPageNumberin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_FIRST_PAGE_NUMBER
-
setFirstPageNumber
public void setFirstPageNumber(Integer firstPageNumber)
-
isShowGridLines
public Boolean isShowGridLines()
Description copied from interface:XlsReportConfigurationFlag that specifies if the gridlines in a given sheet are shown.- Specified by:
isShowGridLinesin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHOW_GRIDLINES
-
setShowGridLines
public void setShowGridLines(Boolean isShowGridLines)
-
getImageAnchorType
public ImageAnchorTypeEnum getImageAnchorType()
Description copied from interface:XlsReportConfigurationSpecifies the image anchor type.- Specified by:
getImageAnchorTypein interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_IMAGE_ANCHOR_TYPE
-
setImageAnchorType
public void setImageAnchorType(ImageAnchorTypeEnum imageAnchorType)
-
isAutoFitPageHeight
public Boolean isAutoFitPageHeight()
Description copied from interface:XlsReportConfigurationFlag that specifies whether the fit height should be estimated automatically.- Specified by:
isAutoFitPageHeightin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_AUTO_FIT_PAGE_HEIGHT
-
setAutoFitPageHeight
public void setAutoFitPageHeight(Boolean isAutoFitPageHeight)
-
isForcePageBreaks
public Boolean isForcePageBreaks()
Description copied from interface:XlsReportConfigurationFlag that specifies whether the page breaks to be marked automatically on each sheet.- Specified by:
isForcePageBreaksin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_FORCE_PAGE_BREAKS
-
setForcePageBreaks
public void setForcePageBreaks(Boolean isForcePageBreaks)
-
isShrinkToFit
public Boolean isShrinkToFit()
Description copied from interface:XlsReportConfigurationFlag that indicates whether the text font size should be decreased in order to keep the entire text visible in the cell. If set to true, this will automatically disable the wrap text property (seeXlsReportConfiguration.isWrapText()). Usually this setting works in conjunction withnet.sf.jasperreports.print.keep.full.text, in order to preserve the entire text content at export time.- Specified by:
isShrinkToFitin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHRINK_TO_FIT
-
setShrinkToFit
public void setShrinkToFit(Boolean isShrinkToFit)
-
isIgnoreTextFormatting
public Boolean isIgnoreTextFormatting()
Description copied from interface:XlsReportConfigurationFlag that indicates whether the text elements should be exported without text formatting features, such as bold, italic, underline, text color, backcolor, etc.- Specified by:
isIgnoreTextFormattingin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_IGNORE_TEXT_FORMATTING
-
setIgnoreTextFormatting
public void setIgnoreTextFormatting(Boolean isIgnoreTextFormatting)
-
getSheetTabColor
public Color getSheetTabColor()
Description copied from interface:XlsReportConfigurationThis setting is used to set the tab color of the sheets. Global and report-level settings are overridden by element-level settings for this property. If several elements in a sheet contain this property, the engine will consider the value of the last exported element's property. The setting is neglected in XLS export channel (works with XLSX and ODS only)- Specified by:
getSheetTabColorin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_SHEET_TAB_COLOR
-
setSheetTabColor
public void setSheetTabColor(Color tabColor)
-
getFreezeRow
public Integer getFreezeRow()
Description copied from interface:XlsReportConfigurationSpecifies the index of the first unlocked row in document's sheets. All rows above this will be 'frozen'. Allowed values are represented by positive integers in the 1..65536 range. Negative values are not considered.- Specified by:
getFreezeRowin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_FREEZE_ROW
-
setFreezeRow
public void setFreezeRow(Integer freezeRow)
-
getFreezeColumn
public String getFreezeColumn()
Description copied from interface:XlsReportConfigurationIndicates the name of the first unlocked column in document's sheets. All columns to the left of this one will be 'frozen'. Allowed values are letters or letter combinations representing valid column names in Excel, such as A, B, AB, AC, etc.- Specified by:
getFreezeColumnin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_FREEZE_COLUMN
-
setFreezeColumn
public void setFreezeColumn(String freezeColumn)
-
getPrintPageTopMargin
public Integer getPrintPageTopMargin()
Description copied from interface:XlsReportConfigurationSpecifies the page top margin in print preview pane, measured in pixels. Default value is 0.- Specified by:
getPrintPageTopMarginin interfaceXlsReportConfiguration
-
setPrintPageTopMargin
public void setPrintPageTopMargin(Integer printPageTopMargin)
-
getPrintPageLeftMargin
public Integer getPrintPageLeftMargin()
Description copied from interface:XlsReportConfigurationSpecifies the page left margin in print preview pane, measured in pixels. Default value is 0.- Specified by:
getPrintPageLeftMarginin interfaceXlsReportConfiguration
-
setPrintPageLeftMargin
public void setPrintPageLeftMargin(Integer printPageLeftMargin)
-
getPrintPageBottomMargin
public Integer getPrintPageBottomMargin()
Description copied from interface:XlsReportConfigurationSpecifies the page bottom margin in print preview pane, measured in pixels. Default value is 0.- Specified by:
getPrintPageBottomMarginin interfaceXlsReportConfiguration
-
setPrintPageBottomMargin
public void setPrintPageBottomMargin(Integer printPageBottomMargin)
-
getPrintPageRightMargin
public Integer getPrintPageRightMargin()
Description copied from interface:XlsReportConfigurationSpecifies the page right margin in print preview pane, measured in pixels. Default value is 0.- Specified by:
getPrintPageRightMarginin interfaceXlsReportConfiguration
-
setPrintPageRightMargin
public void setPrintPageRightMargin(Integer printPageRightMargin)
-
getPrintPageHeight
public Integer getPrintPageHeight()
Description copied from interface:XlsReportConfigurationSpecifies the page height in print preview pane, measured in pixels.- Specified by:
getPrintPageHeightin interfaceXlsReportConfiguration
-
setPrintPageHeight
public void setPrintPageHeight(Integer printPageHeight)
-
getPrintPageWidth
public Integer getPrintPageWidth()
Description copied from interface:XlsReportConfigurationSpecifies the page width in print preview pane, measured in pixels.- Specified by:
getPrintPageWidthin interfaceXlsReportConfiguration
-
setPrintPageWidth
public void setPrintPageWidth(Integer printPageWidth)
-
getPrintHeaderMargin
public Integer getPrintHeaderMargin()
Description copied from interface:XlsReportConfigurationSpecifies the sheet header margin in print preview pane, measured in pixels. Default value is 0.- Specified by:
getPrintHeaderMarginin interfaceXlsReportConfiguration
-
setPrintHeaderMargin
public void setPrintHeaderMargin(Integer printHeaderMargin)
-
getPrintFooterMargin
public Integer getPrintFooterMargin()
Description copied from interface:XlsReportConfigurationSpecifies the sheet footer margin in print preview pane, measured in pixels. Default value is 0.- Specified by:
getPrintFooterMarginin interfaceXlsReportConfiguration
-
setPrintFooterMargin
public void setPrintFooterMargin(Integer printFooterMargin)
-
getDefinedNames
public JRPropertiesUtil.PropertySuffix[] getDefinedNames()
Description copied from interface:XlsReportConfigurationReturns an array of strings representing defined names in the generated workbook.- Specified by:
getDefinedNamesin interfaceXlsReportConfiguration- See Also:
XlsReportConfiguration.PROPERTY_DEFINED_NAMES_PREFIX
-
setDefinedNames
public void setDefinedNames(JRPropertiesUtil.PropertySuffix[] definedNames)
-
isAutoFitRow
public Boolean isAutoFitRow()
- Specified by:
isAutoFitRowin interfaceXlsReportConfiguration- See Also:
ExcelAbstractExporter.PROPERTY_AUTO_FIT_ROW
-
setAutoFitRow
public void setAutoFitRow(Boolean isAutoFitRow)
-
-