public interface ReportGenerator
Modifier and Type | Method and Description |
---|---|
void |
execute()
See
Engine.execute() for details. |
int |
getPageCount()
See
Engine.getPageCount() for details. |
byte[] |
getPageData(int page)
See
Engine.getPageData(int) for details. |
PromptField |
getPromptField(java.lang.String name)
See
Engine.getPromptField(String) for details. |
EngineStatistics |
getStatistics()
See
Engine.getStatistics() for details. |
void |
setClientLocale(java.util.Locale locale)
See
Engine.setClientLocale(Locale) for details. |
void |
setDocumentOutput(DocumentOutput documentOutput)
Set the output location for the rendered data.
|
void |
setPrompt(java.lang.String name,
java.lang.String prompt)
See
Engine.setPrompt(String, String) for details. |
void |
setPrompt(java.lang.String prompt,
int i)
See
Engine.setPrompt(String, int) for details. |
void |
setUserProperties(java.util.Properties props)
See
Engine.setUserProperties(Properties) for details. |
void |
stop(java.lang.String message)
See
Engine.stop(String) for details. |
void |
stopAfterPage(int maxPageNo)
See
Engine.stopAfterPage(int) for details. |
void setDocumentOutput(DocumentOutput documentOutput)
documentOutput
- The location for the data. This can be DocumentOutputStream or CachedOutput.void setUserProperties(java.util.Properties props) throws ReportException
Engine.setUserProperties(Properties)
for details.props
- The data to be set in a Properties object.ReportException
- if Engine is not initialized or finished.void setClientLocale(@Nonnull java.util.Locale locale) throws ReportException
Engine.setClientLocale(Locale)
for details.locale
- The locale to be used by the clientReportException
- if Engine is not initialized or finished.void stopAfterPage(int maxPageNo)
Engine.stopAfterPage(int)
for details.maxPageNo
- The last page that should be rendered. 0 means "unlimited".void setPrompt(java.lang.String name, java.lang.String prompt) throws ReportException
Engine.setPrompt(String, String)
for details.name
- the name of the parameter fieldprompt
- value for parameter field as StringReportException
- if Engine is not initialized or finished.PromptField getPromptField(java.lang.String name) throws ReportException
Engine.getPromptField(String)
for details.name
- name of the prompt to fetchReportException
- if Engine is not initialized or finished.void setPrompt(java.lang.String prompt, int i) throws ReportException
Engine.setPrompt(String, int)
for details.prompt
- value for parameter field ii
- index in the parameter listReportException
- if Engine is not initialized or finished.void execute() throws ReportException
Engine.execute()
for details.ReportException
- if Engine is not initialized or finished.getPageData(int)
int getPageCount() throws ReportException
Engine.getPageCount()
for details.ReportException
- If rendering the report encounters a problembyte[] getPageData(int page) throws ReportException
Engine.getPageData(int)
for details.page
- The number of the page. The first page is 1, the second is 2, ... .
If the page number is bigger than the page count then null will be returned.java.lang.IllegalArgumentException
- if the page number is zero or negative.ReportException
- If rendering the page encounters a problem@Nonnull EngineStatistics getStatistics()
Engine.getStatistics()
for details.void stop(java.lang.String message)
Engine.stop(String)
for details.message
- a message for the debug log.Copyright © 1999-2020 by i-net software GmbH