Package com.stimulsoft.report
Class StiReport
java.lang.Object
com.stimulsoft.base.serializing.StiSerializedObject
com.stimulsoft.report.StiReport
- All Implemented Interfaces:
IStiReport,IStiSerializable,IStiSerializableRef,IStiUnitConvert,IStiEngineVersionProperty,Serializable,Cloneable
public class StiReport
extends StiSerializedObject
implements IStiReport, Cloneable, IStiUnitConvert, IStiEngineVersionProperty, IStiSerializableRef, Serializable
Report class.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanintintString[]String[]intintbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanintintintstatic ObjectintbooleanbooleanbooleanbooleanbooleanFields inherited from interface com.stimulsoft.base.serializing.interfaceobject.IStiSerializableRef
REFERENCE_EMPTY, REFERENCE_REPORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds anchor.voidvoidapplyStyleCollection(String collectionName) Applies styles associated with the specified style collection to all components in the report.voidApplies styles of a report to all components in the report.static ObjectchangeType(Object value, StiSystemType conversionType) Changes a type of the specified value.static ObjectchangeType(Object value, StiSystemType conversionType, Boolean convertNulls) Changes a type of the specified value.final ObjectCheckExcelValue(Object sender, Object value) voidCompile()voidConvertes component from one unit into another.final doubleconvertToHInches(StiUnit unit, double value) final StiRectangleconvertToHInches(StiUnit unit, StiRectangle value) voidFix - correct Format property of the Text components.voiddispose()voidexportDocument(StiExportFormat exportFormat, StiExportService exportService, File file, StiExportSettings settings, JFrame parent) voidGets runtime values by the value of an anchor.intgetAnchorPageNumber(Object value) intgetAnchorPageNumberThrough(Object value) final booleanGets or sets property which allows automatic localization of the report when running starts.final StiBeginRenderEventOccurs when the report rendering starts.final StiBookmarkGets or sets the root bookmark.final booleanGets or sets value, which indicates whether it is necessary to cache all data of the report in one DataSet or not.final StiCalculationModeGets or sets the method of calculation in report.final intGets or sets value which can be used for pages collating.final intfinal StiComponentGetComponentByName(String componentName) Returns a list of all components, including pages in the report.intfinal booleanGets or sets value which shows whether it is necessary to convert null or DBNull.final intGets or sets the index of the current page.final intfinal StiEndRenderEventOccurs when the report rendering is finished.final StiEngineVersionGets or sets version of engine which will be used for report rendering.final StiExportedEventOccurs when report ends exporting.final StiExportingEventOccurs when report starts exporting.Gets a collection which consists of globalization strings.static StiGraphicsgetInfo()final booleanGets value, which indicates that the report is being designed.final booleanGets value, which indicates that the report is exporting.final booleanfinal booleanfinal booleanGets value which indicates that first report pass is rendered now.final booleanfinal booleanfinal booleanfinal booleanfinal booleanGets or sets value, which indicates that the report printing is in process.final booleanfinal booleanfinal booleanGets value which indicates that second report pass is rendered now.booleanfinal booleangetKey()Returns a label of the specified variable.intgetLine()String[]Internal use only.Gets the collection of meta tags.final booleanfinal StiNumberOfPassGets or sets the number of passes which the report generator makes while report rendering.intgetPageIndex(int index) Gets current line starts at the beginning of a reportfinal StringGets string value which contains "Page N of M".final StringGets string value which contains localization template for "Page N of M".final StringGets string value which contains "Page N of M".intfinal intGets or sets an index of the current page printed taking into consideration segmented pages.final StiPagesCollectiongetPages()Gets a collection which consists of the template pages from the currect report.Returns a value of the specified variable or parameter.A horizontal alignment of parameters in the viewerfinal StiOrientationGets or sets value which indicates parameters panel orientation.intA width in pixels of a parameter in the viewer.final StiReportfinal StiPreviewModeGets or sets the preview mode of the report.final longGets or sets controls which will be shown in the Viewer Window.final StiPrintedEventOccurs when report ends printing.final StiPrinterSettingsGets or sets printer settings of current report.final StiPrintingEventOccurs when report starts printing.final IStiProgressInformationintGets or sets an array of referenced assemblies.intthe time (in seconds) after which the report will be automatically rebuilt in the viewer.Returns a list of all rendered components, including rendered pages in the report.final StiPagesCollectionGets a collection of rendered pages from the current report.final StiRenderingEventOccurs when a page is rendered.final StringGets or sets a report alias.final StringGets or sets a report author.final StiReportCacheModeGets or sets value, which indicates how report engine use report cache.final CalendarGets or sets the date of the last report changes.final CalendarGets or sets the date of the report creation.final StringGets or sets a report description.final StringGets or sets the report Guid.final StringGets or sets a report name.final StiReportPassfinal StiReportUnitTypeGets the current measurement unit of the report.final StringGets or sets version of the report engine which changed the report last time.final booleanGets or sets value which indicates whether to request parameters from a user before report rendering or render a report with the default value of parameters.getResourceFontName(String resourceName) booleanvalue, which indicates how report engine retrieve data - only used in the report data or all data.final StiReportLanguageTypeGets or sets the current script language.intintbooleangetStop()final intGets or sets a page number.final StiStylesCollectionGets a collection which consists of report styles.intfinal intGets or sets the number of pages in a report.Internal use only.final StiUnitgetUnit()booleanfinal ObjectgetVariable(String name) voidvoidvoidinvokeExported(StiExportFormat exportFormat) voidinvokeExporting(StiExportFormat exportFormat) voidvoidvoidvoidvoidvoidvoidbooleanSpecifies whether scripts can be used in expressions.booleanSpecifies whether scripts can be run in Interpretation mode.booleanbooleanbooleanbooleanbooleanbooleanbooleanIf enabled, all images (including those defined in resources and duplicate images) are stored in the report’s Resources, and report elements use only references to them.voidvoidvoidloadFromJson(String text) voidlocalizeReport(String cultureName) static StiReportprotected voidprotected voidvoidregCsvData(String name, byte[] data, boolean synchronize) Registers a new connection to the CSV data file.regCsvFile(String name, String fileName, boolean synchronize) Registers a new connection to the CSV data file.voidregDbfData(String name, byte[] data, boolean synchronize) Registers a new connection to the DBF data file.regDbfFile(String name, String fileName, boolean synchronize) Registers a new connection to the DBF data file.regDuckDbConnection(String name, String connectionString, boolean synchronize) regExcelData(String name, byte[] data, boolean synchronize) Registers a new connection to the EXCEL data file.regExcelFile(String name, String fileName, boolean synchronize) Registers a new connection to the EXCEL data file.regJsonData(String name, byte[] data, boolean synchronize) Registers a new connection to the JSON data file.regJsonFile(String name, String fileName, boolean synchronize) Registers a new connection to the JSON data file.regMySqlConnection(String name, String connectionString, boolean synchronize) regOdbcConnection(String name, String connectionString, boolean synchronize) regOleDbConnection(String name, String connectionString, boolean synchronize) regOracleConnection(String name, String connectionString, boolean synchronize) regPostgreSqlConnection(String name, String connectionString, boolean synchronize) regSqlServerConnection(String name, String connectionString, boolean synchronize) regXmlData(String name, byte[] data, boolean synchronize) Registers a new connection to the XML data file.regXmlData(String name, byte[] schema, byte[] data, boolean synchronize) Registers a new connection to the XML data file.regXmlFile(String name, String fileName, boolean synchronize) Registers a new connection to the XML data file.regXmlFile(String name, String fileNameSchema, String fileNameData, boolean synchronize) Registers a new XML connection to the data file.voidRenameStyle(String oldStylename, String newStyleName) final StiReportrender()Renders a report.final voidRender()Renders a report.final voidRender(boolean showProgress) Renders a report.final voidRender(boolean showProgress, int fromPage, int toPage) Renders a report.voidRender(StiRenderState renderState) Renders a report.voidvoidsaveDocument(OutputStream stream) Saves a rendered report in the stream.Saves a rendered report to the string.voidvoidsetAllowScriptsInExpressions(boolean allowScriptsInExpressions) Specifies whether scripts can be used in expressions.voidsetAllowScriptsToRun(boolean allowScriptsToRun) Specifies whether scripts can be run in Interpretation mode.final voidsetAutoLocalizeReportOnRun(boolean value) final voidfinal voidsetBookmark(StiBookmark value) final voidsetCacheAllData(boolean value) final voidfinal voidsetCollate(int value) final voidsetColumn(int value) voidsetCompiledReport(StiReport compiledReport) voidsetCompilerResults(CompilerResults compilerResults) final voidsetConvertNulls(boolean value) voidsetCulture(String culture) final voidsetCurrentPage(int value) final voidsetCurrentPrintPage(int value) voidsetCustomFonts(HashMap<Font, byte[]> customFonts) voidsetDictionary(StiDictionary dictionary) final voidfinal voidfinal voidsetEngineVersion(StiEngineVersion value) final voidsetExportedEvent(StiExportedEvent value) final voidvoidsetExportSettings(StiExportSettingsList exportSettings) Allows you to specify default options for the report export parameters that will be used when exporting the document.voidsetExportSettingsString(String value) voidsetGlobalizationStrings(StiGlobalizationContainerCollection globalizationStrings) voidsetGroupLine(int GroupLine) voidsetHtmlPreviewMode(StiHtmlPreviewMode htmlPreviewMode) final voidsetInfo(StiDesignerInfo value) voidsetInteractionCollapsingStates(HashMap<String, Object> interactionCollapsingStates) voidsetInteractionRendering(boolean isInteractionRendering) final voidsetIsModified(boolean value) final voidsetIsPageDesigner(boolean value) final voidsetIsPrinting(boolean value) final voidsetIsRendered(boolean value) final voidsetIsRendering(boolean value) final voidsetIsSerializing(boolean value) final voidsetIsStopped(boolean value) voidsetIsSubmit(Boolean isSubmit) voidsetJsonReport(boolean jsonReport) voidvoidsetLicenseKey(String licenseKey) voidsetLine(int line) voidsetListOfUsedData(String[] listOfUsedData) Internal use only.voidsetMetaTags(StiMetaTagCollection metaTags) voidsetModifiedVariables(HashMap<String, Boolean> modifiedVariables) final voidsetNeedsCompiling(boolean value) final voidsetNumberOfPass(StiNumberOfPass value) final voidfinal voidsetPageNumber(int value) voidsetPages(StiPagesCollection pages) voidsetParameterAlignment(StiHorAlignment parameterAlignment) voidsetParametersDisplayMode(StiParametersDisplayMode parametersDisplayMode) final voidvoidsetParameterWidth(int parameterWidth) final voidsetParentReport(StiReport value) voidsetPointer(StiBookmark value) voidsetPreviewDialogs(boolean previewDialogs) final voidsetPreviewMode(StiPreviewMode value) final voidsetPreviewSettings(long value) voidsetPreviewToolBarOptions(StiPreviewToolBarOptions previewToolBarOptions) final voidsetPrintedEvent(StiPrintedEvent value) final voidfinal voidsetPrintingEvent(StiPrintingEvent value) final voidvoidsetReference(int reference) final voidsetReferencedAssemblies(ArrayList<String> value) voidsetRefreshTime(int refreshTime) final voidsetRenderedPages(StiPagesCollection pagesCollection) final voidfinal voidsetReportAlias(String value) final voidsetReportAuthor(String value) final voidfinal voidsetReportChanged(Calendar value) final voidsetReportCreated(Calendar value) final voidsetReportDescription(String value) voidsetReportFile(String reportFile) final voidsetReportGuid(String value) final voidsetReportName(String value) final voidsetReportPass(StiReportPass value) final voidvoidsetReportResources(StiReportResourceCollection reportResources) final voidsetReportUnit(StiReportUnitType value) final voidsetReportVersion(String value) final voidsetRequestParameters(boolean value) voidsetRetrieveOnlyUsedData(boolean retrieveOnlyUsedData) value, which indicates how report engine retrieve data - only used in the report data or all data.voidsetSaveInteractionParametersToDocument(boolean saveInteractionParametersToDocument) voidfinal voidvoidsetScriptTimeout(int scriptTimeout) voidsetShowProgress(boolean showProgress) voidsetStatusHandler(StiStatusHandler statusHandler) voidsetStatusString(String statusString) final voidsetStop(boolean value) final voidsetStopBeforePage(int value) voidsetStoreImagesInResources(boolean storeImagesInResources) If enabled, all images (including those defined in resources and duplicate images) are stored in the report’s Resources, and report elements use only references to them.voidsetStyles(StiStylesCollection styles) final voidsetSubReports(ArrayList<StiReport> value) final voidsetTotalPageCount(int value) final voidfinal voidvoidsetUseProgressInThread(boolean value) final voidsetVariable(String name, Object value) voidsetVariables(StiVariablesMap variables) final StringInternal use only.final Stringfinal Stringvoidfinal voidMethods inherited from class com.stimulsoft.base.serializing.StiSerializedObject
cleanReference
-
Field Details
-
dictionary
-
pages
-
reportCacheMode
-
compiledReport
-
bookmarkValue
-
DataBandsUsedInPageTotals
-
LineThrough
public int LineThrough -
LineABC
public int LineABC -
LineRoman
public int LineRoman -
useProgressInThread
public boolean useProgressInThread -
reportRenderingMessages
-
interactionCollapsingStates
-
progressOfRendering
public int progressOfRendering -
progress
-
subReports
-
reportSource
-
tag
-
reportCachePath
-
imageCachePath
-
rtfCachePath
-
parentReport
-
manualBookmark
-
reportMeasureGraphics
-
password
-
dataBandsUsedInPageTotals
-
reportPass
-
isEditedInViewer
public boolean isEditedInViewer -
isRendered
public boolean isRendered -
isRendering
public boolean isRendering -
isStopped
public boolean isStopped -
stop
public boolean stop -
isPageDesigner
public boolean isPageDesigner -
isSerializing
public boolean isSerializing -
isPackedReport
public boolean isPackedReport -
isWpf
public boolean isWpf -
isDocument
public boolean isDocument -
isInteractionRendering
public boolean isInteractionRendering -
isNeedsCompiling
public boolean isNeedsCompiling -
saveReportInResources
public boolean saveReportInResources -
lockGlobalMeasureGraphics
-
SubReportsResetPageNumber
public boolean SubReportsResetPageNumber -
SubReportsPrintOnPreviousPage
public boolean SubReportsPrintOnPreviousPage -
engine
-
GroupLine
public int GroupLine -
containsTables
public boolean containsTables -
SubReportsMasterReport
-
currentPrintPage
public int currentPrintPage -
currentPage
public int currentPage -
IndexName
public int IndexName -
statusHandler
-
jsonLoaderHelper
-
designer
-
renderedWith
-
isReportRenderingAfterSubmit
public boolean isReportRenderingAfterSubmit -
parametersDisplayMode
-
handlerRendering
-
handlerRefreshPreview
-
handlerRefreshViewer
-
handlerBeginRender
-
handlerEndRender
-
handlerExported
-
handlerExporting
-
handlerPaint
-
handlerPrinted
-
handlerStatusChanged
-
handlerDesignerEvents
-
pointerValue
-
-
Constructor Details
-
StiReport
public StiReport()
-
-
Method Details
-
newInstance
-
fillReportScript
public void fillReportScript() -
convert
Description copied from interface:IStiUnitConvertConvertes component from one unit into another.- Specified by:
convertin interfaceIStiUnitConvert- Parameters:
oldUnit- Old units.newUnit- New units.
-
setInfo
-
getGlobalMeasureGraphics
-
getReportMeasureGraphics
-
getPageNumberThrough
public final int getPageNumberThrough()Gets or sets an index of the current page printed taking into consideration segmented pages. Number starts from 1. Property ResetPageNumber is ignored. -
getTotalPageCountThrough
public final int getTotalPageCountThrough()Gets or sets the number of pages in a report. Property ResetPageNumber is ignored. -
getPageNumber
public int getPageNumber() -
getPageLine
Gets current line starts at the beginning of a report -
getPageNofM
Gets string value which contains "Page N of M". Property ResetPageNumber can reset value of N. -
getPageNofMThrough
Gets string value which contains "Page N of M". Property ResetPageNumber is ignored. -
getPageNofMLocalizationString
Gets string value which contains localization template for "Page N of M". For example: Page {0} of {1}. By default this property equal to null and report engine use global localization string. -
setPageNofMLocalizationString
-
getInfo
-
setPageNumber
public final void setPageNumber(int value) -
getTotalPageCount
public int getTotalPageCount() -
setTotalPageCount
public final void setTotalPageCount(int value) -
getReportPass
-
setReportPass
-
getIsRendering
public final boolean getIsRendering() -
setIsRendering
public final void setIsRendering(boolean value) -
addPage
-
setReference
public void setReference(int reference) - Specified by:
setReferencein interfaceIStiSerializableRef- Overrides:
setReferencein classStiSerializedObject
-
getReference
public int getReference()- Specified by:
getReferencein interfaceIStiSerializableRef- Overrides:
getReferencein classStiSerializedObject
-
setDictionary
-
getDictionary
-
getEngineVersionStr
-
getReportFile
-
getScript
-
setReportFile
-
setScript
-
getUnit
-
setUnit
-
getBeginRenderEvent
Occurs when the report rendering starts. -
setBeginRenderEvent
-
getRenderingEvent
Occurs when a page is rendered. -
setRenderingEvent
-
getEndRenderEvent
Occurs when the report rendering is finished. -
setEndRenderEvent
-
getExportingEvent
Occurs when report starts exporting. -
setExportingEvent
-
getExportedEvent
Occurs when report ends exporting. -
setExportedEvent
-
getPrintingEvent
Occurs when report starts printing. -
setPrintingEvent
-
getPrintedEvent
Occurs when report ends printing. -
setPrintedEvent
-
getMetaTags
Gets the collection of meta tags. Meta tags can be used for storing specific information in report. Meta tags will be saved in report file. -
setMetaTags
-
getReportVersion
Gets or sets version of the report engine which changed the report last time. -
setReportVersion
-
getReportGuid
Gets or sets the report Guid. -
setReportGuid
-
getAnchor
Gets runtime values by the value of an anchor.- Parameters:
value- An anchor value.- Returns:
- A runtime value.
-
getPageIndex
public int getPageIndex(int index) -
getPages
Gets a collection which consists of the template pages from the currect report. -
setPages
-
getReportName
Gets or sets a report name. -
setReportName
-
getReportAlias
Gets or sets a report alias. -
setReportAlias
-
getReportAuthor
Gets or sets a report author. -
setReportAuthor
-
getReportDescription
Gets or sets a report description. -
setReportDescription
-
getReportCreated
Gets or sets the date of the report creation. -
setReportCreated
-
getReportChanged
Gets or sets the date of the last report changes. -
setReportChanged
-
getEngineVersion
Gets or sets version of engine which will be used for report rendering. EngineV1 is old version of engine. EngineV2 is newest version of engine. Its more powerful and more flexible.- Specified by:
getEngineVersionin interfaceIStiEngineVersionProperty
-
setEngineVersion
- Specified by:
setEngineVersionin interfaceIStiEngineVersionProperty
-
getStyles
Gets a collection which consists of report styles. -
setStyles
-
getNumberOfPass
Gets or sets the number of passes which the report generator makes while report rendering. -
setNumberOfPass
-
getCalculationMode
Gets or sets the method of calculation in report. -
setCalculationMode
-
getReportUnit
Gets the current measurement unit of the report. -
setReportUnit
-
getCacheAllData
public final boolean getCacheAllData()Gets or sets value, which indicates whether it is necessary to cache all data of the report in one DataSet or not. -
setCacheAllData
public final void setCacheAllData(boolean value) -
getReportCacheMode
Gets or sets value, which indicates how report engine use report cache. -
setReportCacheMode
-
getConvertNulls
public final boolean getConvertNulls()Gets or sets value which shows whether it is necessary to convert null or DBNull. -
setConvertNulls
public final void setConvertNulls(boolean value) -
getPreviewMode
Gets or sets the preview mode of the report. -
setPreviewMode
-
getStopBeforePage
public final int getStopBeforePage()Gets or sets a page number. When this page is reached then the report rendering is stopped. -
setStopBeforePage
public final void setStopBeforePage(int value) -
getPreviewSettings
public final long getPreviewSettings()Gets or sets controls which will be shown in the Viewer Window. -
setPreviewSettings
public final void setPreviewSettings(long value) -
getCollate
public final int getCollate()Gets or sets value which can be used for pages collating. The value of the property cannot be less then 1. -
setCollate
public final void setCollate(int value) -
getPrinterSettings
Gets or sets printer settings of current report. -
setPrinterSettings
-
getReferencedAssemblies
Gets or sets an array of referenced assemblies. -
setReferencedAssemblies
-
getScriptLanguage
Gets or sets the current script language. -
setScriptLanguage
-
getGlobalizationStrings
Gets a collection which consists of globalization strings. -
setGlobalizationStrings
-
localizeReport
- Throws:
StiException
-
getAutoLocalizeReportOnRun
public final boolean getAutoLocalizeReportOnRun()Gets or sets property which allows automatic localization of the report when running starts. -
setAutoLocalizeReportOnRun
public final void setAutoLocalizeReportOnRun(boolean value) -
getParametersOrientation
Gets or sets value which indicates parameters panel orientation. -
setParametersOrientation
-
getRequestParameters
public final boolean getRequestParameters()Gets or sets value which indicates whether to request parameters from a user before report rendering or render a report with the default value of parameters. -
setRequestParameters
public final void setRequestParameters(boolean value) -
getIsSerializing
public boolean getIsSerializing() -
setIsSerializing
public final void setIsSerializing(boolean value) -
getIsModified
public final boolean getIsModified() -
setIsModified
public final void setIsModified(boolean value) -
getDataSources
-
getEngine
-
setEngine
-
getBusinessObjectsStore
-
getScriptTimeout
public int getScriptTimeout() -
setScriptTimeout
public void setScriptTimeout(int scriptTimeout) -
GetComponents
Returns a list of all components, including pages in the report.- Returns:
-
GetRenderedComponents
Returns a list of all rendered components, including rendered pages in the report.- Returns:
- List of all rendered components.
-
applyStyleCollection
Applies styles associated with the specified style collection to all components in the report.- Parameters:
collectionName-
-
applyStyles
public void applyStyles()Applies styles of a report to all components in the report. -
correctFormatProperties
public void correctFormatProperties()Fix - correct Format property of the Text components. It's serialization order issue, Format property is calculated before all properties are applied to the TextFormat. -
RenameStyle
-
getComponents
-
getComponentsCount
public int getComponentsCount() -
getVariables
-
setVariables
-
getIsPageDesigner
public final boolean getIsPageDesigner() -
setIsPageDesigner
public final void setIsPageDesigner(boolean value) -
WriteToReportRenderingMessages
-
getReportRenderingMessages
-
setReportRenderingMessages
-
setCompiledReport
-
getCompiledReport
-
getBookmark
Gets or sets the root bookmark. Internal use only. -
setBookmark
-
getPointer
-
setPointer
-
getSelectionTick
public int getSelectionTick() -
getRenderedPages
Gets a collection of rendered pages from the current report. -
setRenderedPages
-
getIsDesigning
public final boolean getIsDesigning()Gets value, which indicates that the report is being designed. -
getIsExporting
public final boolean getIsExporting()Gets value, which indicates that the report is exporting. -
getIsPrinting
public final boolean getIsPrinting()Gets or sets value, which indicates that the report printing is in process. -
setIsPrinting
public final void setIsPrinting(boolean value) -
getCurrentPrintPage
public final int getCurrentPrintPage() -
setCurrentPrintPage
public final void setCurrentPrintPage(int value) -
getStop
public boolean getStop() -
setStop
public final void setStop(boolean value) -
invokeRendering
public void invokeRendering() -
getParentReport
-
setParentReport
-
getColumn
public final int getColumn() -
setColumn
public final void setColumn(int value) -
getIsStopped
public final boolean getIsStopped() -
setIsStopped
public final void setIsStopped(boolean value) -
getIsRendered
public final boolean getIsRendered() -
setIsRendered
public final void setIsRendered(boolean value) -
Compile
public void Compile() -
invokeRefreshViewer
public void invokeRefreshViewer() -
setGroupLine
public void setGroupLine(int GroupLine) -
getInteraction
-
invokeBeginRender
public void invokeBeginRender() -
ResetAggregateFunctions
public void ResetAggregateFunctions() -
invokeEndRender
public void invokeEndRender() -
GetComponentByName
-
render
Renders a report.- Returns:
-
Render
public final void Render()Renders a report. -
Render
public final void Render(boolean showProgress) Renders a report.- Parameters:
showProgress- Whether it is necessary to show the progress of report rendering or not.
-
Render
public final void Render(boolean showProgress, int fromPage, int toPage) Renders a report.- Parameters:
showProgress- Whether it is necessary to show the progress of report rendering or not.
-
Render
Renders a report.- Parameters:
showProgress- Whether it is necessary to show the progress of report rendering or not.
-
getUseProgressInThread
public boolean getUseProgressInThread() -
setUseProgressInThread
public void setUseProgressInThread(boolean value) -
processAutoLocalizeReportOnRun
public void processAutoLocalizeReportOnRun() -
getProgress
-
setProgress
-
getSubReports
-
setSubReports
-
setStatusString
-
CheckExcelValue
-
ToString
Internal use only. Used only for converting an object to the string. -
ToString
-
ToString
-
getIsFirstPage
public final boolean getIsFirstPage() -
getIsLastPage
public final boolean getIsLastPage() -
getIsFirstPageThrough
public final boolean getIsFirstPageThrough() -
getIsLastPageThrough
public final boolean getIsLastPageThrough() -
getIsFirstPass
public final boolean getIsFirstPass()Gets value which indicates that first report pass is rendered now. -
getIsSecondPass
public final boolean getIsSecondPass()Gets value which indicates that second report pass is rendered now. -
getCurrentPage
public final int getCurrentPage()Gets or sets the index of the current page. Counting starts from 0. -
setCurrentPage
public final void setCurrentPage(int value) -
setLine
public void setLine(int line) -
getLine
public int getLine() -
getNeedsCompiling
public final boolean getNeedsCompiling() -
setNeedsCompiling
public final void setNeedsCompiling(boolean value) -
getVariable
-
setVariable
-
convertToHInches
-
convertToHInches
-
exportDocument
public void exportDocument(StiExportFormat exportFormat, StiExportService exportService, File file, StiExportSettings settings, JFrame parent) throws Throwable - Throws:
Throwable
-
invokeExported
-
onExported
-
invokeExporting
-
onExporting
-
invokePaint
-
invokePrinted
public void invokePrinted() -
invokePrinting
public void invokePrinting() -
invokeRefreshPreview
public void invokeRefreshPreview() -
invokeStatusChanged
public void invokeStatusChanged() -
getTotals
Internal use only. -
setTotals
-
saveDocument
Saves a rendered report in the stream.- Parameters:
stream- A stream to save a rendered report.
-
saveDocumentToString
Saves a rendered report to the string.- Returns:
- A string which contains the report template.
- Throws:
IOException
-
getStatusHandler
- Returns:
- the statusHandler
-
setStatusHandler
- Parameters:
statusHandler- the statusHandler to set
-
getStatusString
- Returns:
- the statusString
-
isInterpretation
public boolean isInterpretation() -
isPreviewDialogs
public boolean isPreviewDialogs()- Returns:
- the previewDialogs
-
setPreviewDialogs
public void setPreviewDialogs(boolean previewDialogs) - Parameters:
previewDialogs- the previewDialogs to set
-
getIsSubmit
- Returns:
- the isSubmit
-
setIsSubmit
- Parameters:
isSubmit- the isSubmit to set
-
getCustomFunctions
- Returns:
- the customFunctions
-
isShowProgress
public boolean isShowProgress()- Returns:
- the showProgress
-
setShowProgress
public void setShowProgress(boolean showProgress) - Parameters:
showProgress- the showProgress to set
-
getInteractionCollapsingStates
- Returns:
- the interactionCollapsingStates
-
setInteractionCollapsingStates
- Parameters:
interactionCollapsingStates- the interactionCollapsingStates to set
-
isInteractionRendering
public boolean isInteractionRendering()- Returns:
- the isInteractionRendering
-
setInteractionRendering
public void setInteractionRendering(boolean isInteractionRendering) - Parameters:
isInteractionRendering- the isInteractionRendering to set
-
get
-
set
-
getCulture
- Returns:
- the culture
-
setCulture
- Parameters:
culture- the culture to set
-
getModifiedVariables
- Returns:
- the modifiedVariables
-
setModifiedVariables
- Parameters:
modifiedVariables- the modifiedVariables to set
-
changeType
Changes a type of the specified value.- Parameters:
value- A parameter which type will be changed.conversionType- A type to which the value parameter will be converted.- Returns:
- Returns a value of the converted type.
-
changeType
Changes a type of the specified value.- Parameters:
value- A parameter which type will be changed.conversionType- A type to which the value parameter will be converted.convertNulls- A parameter which, when converting zero values, instead of null, returns String.Empty, false for Boolean, ' ' for char or null for DateTime.- Returns:
- Returns a value of the converted type.
-
getListOfUsedData
Internal use only. List of used datasources for RetrieveOnlyUsedData feature.- Returns:
- the listOfUsedData
-
setListOfUsedData
Internal use only. List of used datasources for RetrieveOnlyUsedData feature.- Parameters:
listOfUsedData- the listOfUsedData to set
-
getRetrieveOnlyUsedData
public boolean getRetrieveOnlyUsedData()value, which indicates how report engine retrieve data - only used in the report data or all data.- Returns:
- the retrieveOnlyUsedData
-
setRetrieveOnlyUsedData
public void setRetrieveOnlyUsedData(boolean retrieveOnlyUsedData) value, which indicates how report engine retrieve data - only used in the report data or all data.- Parameters:
retrieveOnlyUsedData- the retrieveOnlyUsedData to set
-
isJsonReport
public boolean isJsonReport()- Returns:
- the jsonReport
-
setJsonReport
public void setJsonReport(boolean jsonReport) - Parameters:
jsonReport- the jsonReport to set
-
updateReportVersion
public void updateReportVersion() -
saveToJsonInternal
- Throws:
JSONException
-
loadFromJson
- Throws:
JSONExceptionParseException
-
getJsonLoaderHelper
- Returns:
- the jsonLoaderHelper
-
getLicenseKey
- Returns:
- the licenseKey
-
setLicenseKey
- Parameters:
licenseKey- the licenseKey to set
-
getParametersDisplayMode
-
setParametersDisplayMode
-
getReportResources
-
setReportResources
- Parameters:
reportResources- the reportResources to set
-
loadFonts
public void loadFonts() -
loadDocumentFonts
public void loadDocumentFonts() -
getPreviewToolBarOptions
- Returns:
- the previewToolBarOptions
-
setPreviewToolBarOptions
- Parameters:
previewToolBarOptions- the previewToolBarOptions to set
-
getRefreshTime
public int getRefreshTime()the time (in seconds) after which the report will be automatically rebuilt in the viewer.- Returns:
- the refreshTime
-
setRefreshTime
public void setRefreshTime(int refreshTime) - Parameters:
refreshTime- the refreshTime to set
-
isSaveInteractionParametersToDocument
public boolean isSaveInteractionParametersToDocument()- Returns:
- the saveInteractionParametersToDocument
-
setSaveInteractionParametersToDocument
public void setSaveInteractionParametersToDocument(boolean saveInteractionParametersToDocument) - Parameters:
saveInteractionParametersToDocument- the saveInteractionParametersToDocument to set
-
getResourceFontName
-
addAnchor
Adds anchor.- Parameters:
value-
-
getAnchorPageNumber
-
getAnchorPageNumberThrough
-
dispose
public void dispose() -
getLocale
-
getKey
- Returns:
- the key
-
setKey
- Parameters:
key- the key to set
-
getLabel
Returns a label of the specified variable.- Parameters:
variableName-- Returns:
-
isAllowScriptsInExpressions
public boolean isAllowScriptsInExpressions()Specifies whether scripts can be used in expressions. You can write a script with 'return' statement in any expression if true.- Returns:
-
setAllowScriptsInExpressions
public void setAllowScriptsInExpressions(boolean allowScriptsInExpressions) Specifies whether scripts can be used in expressions. You can write a script with 'return' statement in any expression if true.- Parameters:
allowScriptsInExpressions-
-
isAllowScriptsToRun
public boolean isAllowScriptsToRun()Specifies whether scripts can be run in Interpretation mode. In Compilation mode, scripts are compiled and run unconditionally.- Returns:
-
setAllowScriptsToRun
public void setAllowScriptsToRun(boolean allowScriptsToRun) Specifies whether scripts can be run in Interpretation mode. In Compilation mode, scripts are compiled and run unconditionally.- Parameters:
allowScriptsToRun-
-
getParam
Returns a value of the specified variable or parameter.- Parameters:
paramName-- Returns:
-
getHtmlPreviewMode
- Returns:
- the htmlPreviewMode
-
setHtmlPreviewMode
- Parameters:
htmlPreviewMode- the htmlPreviewMode to set
-
getCustomFonts
-
setCustomFonts
-
getParameterWidth
public int getParameterWidth()A width in pixels of a parameter in the viewer. The default value is used if a zero value is specified.- Returns:
-
setParameterWidth
public void setParameterWidth(int parameterWidth) -
getParameterAlignment
A horizontal alignment of parameters in the viewer- Returns:
-
setParameterAlignment
-
getExportSettings
-
setExportSettings
Allows you to specify default options for the report export parameters that will be used when exporting the document.- Parameters:
exportSettings-
-
getExportSettingsString
-
isStoreImagesInResources
public boolean isStoreImagesInResources()If enabled, all images (including those defined in resources and duplicate images) are stored in the report’s Resources, and report elements use only references to them.- Returns:
-
setStoreImagesInResources
public void setStoreImagesInResources(boolean storeImagesInResources) If enabled, all images (including those defined in resources and duplicate images) are stored in the report’s Resources, and report elements use only references to them. -
setExportSettingsString
-
regOleDbConnection
-
regOdbcConnection
-
regMySqlConnection
-
regDuckDbConnection
-
regPostgreSqlConnection
public StiDatabase regPostgreSqlConnection(String name, String connectionString, boolean synchronize) -
regOracleConnection
-
regSqlServerConnection
public StiDatabase regSqlServerConnection(String name, String connectionString, boolean synchronize) -
regJsonFile
Registers a new connection to the JSON data file.- Parameters:
name- A name of the JSON connection in the dictionary.fileName- A file path to the JSON data file.synchronize- If true, then Data Sources, Columns and Relations from the JSON data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regExcelFile
Registers a new connection to the EXCEL data file.- Parameters:
name- A name of the EXCEL connection in the dictionary.fileName- A file path to the EXCEL data file.synchronize- If true, then Data Sources, Columns and Relations from the EXCEL data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regCsvFile
Registers a new connection to the CSV data file.- Parameters:
name- A name of the CSV connection in the dictionary.fileName- A file path to the CSV data file.synchronize- If true, then Data Sources, Columns and Relations from the CSV data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regDbfFile
Registers a new connection to the DBF data file.- Parameters:
name- A name of the DBF connection in the dictionary.fileName- A file path to the DBF data file.synchronize- If true, then Data Sources, Columns and Relations from the DBF data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regXmlFile
Registers a new connection to the XML data file.- Parameters:
name- A name of the XML connection in the dictionary.fileName- A file path to the XML data file.synchronize- If true, then Data Sources, Columns and Relations from the XML data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regXmlFile
public StiDatabase regXmlFile(String name, String fileNameSchema, String fileNameData, boolean synchronize) Registers a new XML connection to the data file.- Parameters:
name- A name of the XML connection in the dictionary.fileNameSchema- A file path to the XML schema file.fileNameData- A file path to the XML data file.synchronize- If true, then Data Sources, Columns and Relations from the data file will be created or updated in the Dictionary.- Returns:
- The created XML connection in the dictionary.
-
regJsonData
Registers a new connection to the JSON data file.- Parameters:
name- A name of the JSON connection in the dictionary.data- A data for this new connection.synchronize- If true, then Data Sources, Columns and Relations from the JSON data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regExcelData
Registers a new connection to the EXCEL data file.- Parameters:
name- A name of the EXCEL connection in the dictionary.data- A data for this new connection.synchronize- If true, then Data Sources, Columns and Relations from the EXCEL data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regCsvData
Registers a new connection to the CSV data file.- Parameters:
name- A name of the CSV connection in the dictionary.data- A data for this new connection.synchronize- If true, then Data Sources, Columns and Relations from the CSV data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regDbfData
Registers a new connection to the DBF data file.- Parameters:
name- A name of the DBF connection in the dictionary.data- A data for this new connection.synchronize- If true, then Data Sources, Columns and Relations from the DBF data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regXmlData
Registers a new connection to the XML data file.- Parameters:
name- A name of the XML connection in the dictionary.data- A data for this new connection.synchronize- If true, then Data Sources, Columns and Relations from the XML data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regXmlData
Registers a new connection to the XML data file.- Parameters:
name- A name of the XML connection in the dictionary.schema- A XSD-schema for this new connection.data- A XML-data for this new connection.synchronize- If true, then Data Sources, Columns and Relations from the XML data file will be created or updated in the Dictionary.- Returns:
- The created connection in the dictionary.
-
regData
-
resetRenderedState
-
getCompilerResults
-
setCompilerResults
-