public class JRDocxExporter extends JRAbstractExporter<DocxReportConfiguration,DocxExporterConfiguration,OutputStreamExporterOutput,JRDocxExporterContext>
DocxReportConfiguration):
isFramesAsNestedTables()
exporter configuration flag or its corresponding exporter hint called
net.sf.jasperreports.export.docx.frames.as.nested.tables.isFlexibleRowHeight()
exporter configuration flag, or its corresponding exporter hint called
net.sf.jasperreports.export.docx.flexible.row.height.isIgnoreHyperlink()
exporter configuration flag, or its corresponding exporter hint called
net.sf.jasperreports.export.docx.ignore.hyperlinkDocxReportConfiguration| Modifier and Type | Class and Description |
|---|---|
protected class |
JRDocxExporter.ExporterContext |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRangeallSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_MIXED_CALLS_NOT_ALLOWED, EXCEPTION_MESSAGE_KEY_OUTPUT_WRITER_ERROR, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, fontUtil, hyperlinkProducerFactory, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses| Constructor and Description |
|---|
JRDocxExporter() |
JRDocxExporter(JasperReportsContext jasperReportsContext) |
createFilter, defaultParseNumber, ensureJasperReportsContext, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getDateCellValue, getDateFormat, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getParameter, getParameters, getPropertiesUtil, getRendererUtil, getReportContext, getRepository, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperReportsContext, setOffset, setOffset, setParameter, setParameters, setReportContextpublic static final String DOCX_EXPORTER_KEY
GenericElementHandlerEnviroment.getElementHandler(JRGenericElementType, String).public static final String EXCEPTION_MESSAGE_KEY_COLUMN_COUNT_OUT_OF_RANGE
public static final String DOCX_EXPORTER_PROPERTIES_PREFIX
public static final String PROPERTY_HIDDEN_TEXT
JRPropertiesUtil,
Constant Field Valuespublic static final String JR_PAGE_ANCHOR_PREFIX
public static final String IMAGE_NAME_PREFIX
protected static final int IMAGE_NAME_PREFIX_LEGTH
public static final String IMAGE_LINK_PREFIX
protected DocxZip docxZip
protected DocxDocumentHelper docHelper
protected Writer docWriter
protected RenderersCache renderersCache
protected int reportIndex
protected int pageIndex
protected int startPageIndex
protected int endPageIndex
protected int tableIndex
protected boolean startPage
protected String invalidCharReplacement
protected PrintPageFormat pageFormat
protected JRGridLayout pageGridLayout
protected LinkedList<Color> backcolorStack
protected Color backcolor
protected DocxRunHelper runHelper
protected ExporterNature nature
protected long bookmarkIndex
protected String pageAnchor
protected DocxRelsHelper relsHelper
protected PropsAppHelper appHelper
protected PropsCoreHelper coreHelper
protected DocxFontHelper docxFontHelper
protected DocxFontTableHelper docxFontTableHelper
protected DocxFontTableRelsHelper docxFontTableRelsHelper
public JRDocxExporter()
JRDocxExporter(JasperReportsContext)public JRDocxExporter(JasperReportsContext jasperReportsContext)
protected Class<DocxExporterConfiguration> getConfigurationInterface()
protected Class<DocxReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
public void exportReport()
throws JRException
ExporterexportReport in interface Exporter<ExporterInput,DocxReportConfiguration,DocxExporterConfiguration,OutputStreamExporterOutput>exportReport in class JRAbstractExporter<DocxReportConfiguration,DocxExporterConfiguration,OutputStreamExporterOutput,JRDocxExporterContext>JRExceptionprotected void initExport()
protected void initReport()
protected void exportReportToStream(OutputStream os) throws JRException, IOException
JRExceptionIOExceptionprotected void exportPage(JRPrintPage page) throws JRException
JRExceptionprotected void exportGrid(JRGridLayout gridLayout, JRPrintElementIndex frameIndex) throws JRException
JRExceptionprotected void exportLine(DocxTableHelper tableHelper, JRPrintLine line, JRExporterGridCell gridCell)
protected void exportRectangle(DocxTableHelper tableHelper, JRPrintRectangle rectangle, JRExporterGridCell gridCell)
protected void exportEllipse(DocxTableHelper tableHelper, JRPrintEllipse ellipse, JRExporterGridCell gridCell)
public void exportText(DocxTableHelper tableHelper, JRPrintText text, JRExporterGridCell gridCell)
protected void exportStyledText(JRStyle style, JRStyledText styledText, Locale locale, boolean hiddenText, boolean startedHyperlink, boolean isNewLineJustified)
public void exportImage(DocxTableHelper tableHelper, JRPrintImage image, JRExporterGridCell gridCell) throws JRException
JRExceptionprotected JRPrintElementIndex getElementIndex(JRExporterGridCell gridCell)
public static JRPrintElementIndex getPrintElementIndex(String imageName)
protected void exportFrame(DocxTableHelper tableHelper, JRPrintFrame frame, JRExporterGridCell gridCell) throws JRException
JRExceptionprotected void exportGenericElement(DocxTableHelper tableHelper, JRGenericPrintElement element, JRExporterGridCell gridCell)
protected void setBackcolor(Color color)
protected void restoreBackcolor()
protected boolean startHyperlink(JRPrintHyperlink link, boolean isText)
protected String getHyperlinkTarget(JRPrintHyperlink link)
protected String getHyperlinkURL(JRPrintHyperlink link)
protected void endHyperlink(boolean isText)
protected void insertBookmark(String bookmark, BaseHelper helper)
protected void ensureInput()
protected JRStyledText getStyledText(JRPrintText textElement, boolean setBackcolor)
public String getExporterKey()
public String getExporterPropertiesPrefix()
JRAbstractExportergetExporterPropertiesPrefix in class JRAbstractExporter<DocxReportConfiguration,DocxExporterConfiguration,OutputStreamExporterOutput,JRDocxExporterContext>Copyright © 2020 TIBCO Software Inc.. All rights reserved.