### Executive interfaces

We provide three interfaces for you to implement:

#### jet.util.JURLExecutor

This interface provides the following method, which is used to get the status of the JReport Engine:

public boolean exec(String[] params) throws JURLExecuterException

- Parameter
  params - Array of strings, each element is defined and parsed by yourself. You can enter the PARAMETERs in the Report Inspector. If no PARAMETER is entered, params.length will be zero.
- Return
  Boolean value. If true, the JReport Engine will continue running. If false, JReport Engine will stop at this point.

#### jet.util.JURLEngineExecutor

This interface provides the following method, which is used to get the status of the JReport Engine:

public boolean exec(String[] params, EngineExecutor executor) throws JURLExecutorException

- Parameter
  params - Array of strings, each element of which is defined by yourself and also parsed by yourself. You can enter the PARAMETERs in the Report Inspector. If no PARAMETERs are entered, then params.length is zero.
  executor - Executor of EngineExecutor, which is another interface JReport provides for exporting a report to HTML, TXT or PDF format within the Exit functions.
- Return
  boolean value. If true, the JReport Engine will continue running. If false, the JReport Engine will stop at this point.

#### jet.util.EngineExecutor

This interface provides three methods:

- public boolean exportToHtml(String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNum, boolean bAbsolute, int iBrowser)

  This method is used to export the report result to HTML format.

  - Parameter
    HtmlFileName - Name of the HTML format result file with full path.
    bChartApplet - A Boolean value which specifies whether or not a chart in an HTML file is an applet.
    isMultiFile - A Boolean value which specifies whether or not the HTML is generated to one or multiple files.
    bUsingTable - A Boolean value which specifies whether or not to use the HTML table format for exporting HTML files.
    bHyperLink - A Boolean value which specifies whether or not to generate hyperlinks.
    bPageNum - A Boolean value which specifies whether or not to generate page number.
    bAbsolute - A Boolean value which specifies whether or not the font size is absolute or relative.
    iBrowser - An int value which specifies whether or not the web browser is IE.
  - Return
    Boolean value for exporting status. If true, the report has been successfully exported and vice versa.
- public boolean exportToPdf(String pdfFileName)

  This method is used to export the report result to PDF format.

  - Parameter
    PdfFileName - The name of the PDF format result file with a full path.
  - Return
    Boolean value for exporting status. If true, the report has been successfully exported and vice versa.
- public boolean exportToText(String textFileName, boolean isNormalText, boolean isRepeat, char delimiter)

  This method is used for exporting the report result to text format.

  - Parameter
    TextFileName - Name of the TEXT format result file with full path, where "true/false" sets whether or not the text file is of normal text format or of standard data format. A standard data format text file is a text file where each row represents a single record in a report. It can be used as a text data source for exchanging data with other applications.
    isNormalText - A Boolean value which specifies whether or not a text file is in normal text format.
    isRepeat - A Boolean value which specifies whether or not the contents will be repeated.
    delimiter - A character which is be used in SDF (Standard Data Format). The delimiter will only be used when the "true/false" parameter is set to false. Delimiters can be ',' (the CSV format) or any other character. The default is ' ' (a blank), which is the SSV format.
  - Return
    Boolean value for exporting status. If true, the report has been successfully exported and vice versa.

Reference: For API information, see JURExecutor, JUREngineExecutor and EngineExecutor interfaces in the JReport Javadoc jet.util package located at `<install_root>\help\api`.