|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Panel
jet.bean.JRDirectViewer
public class JRDirectViewer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.BaselineResizeBehavior |
Field Summary | |
---|---|
static int |
IE
Indicates the html browser is IE. |
static int |
LANDSCAPE
The origin is at the bottom left of the paper with x running bottom to top and y running left to right. |
static int |
NETSCAPE
Deprecated. since v9.1 |
static int |
PORTRAIT
The origin is at the top left of the paper with x running to the right and y running down the paper. |
static int |
vDebug
Indicates to open the debug. |
static int |
vError
Indicates to open the error. |
static int |
vOff
Indicates to close the debug. |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
JRDirectViewer()
The default constructor. |
|
JRDirectViewer(boolean showButton)
The constructor. |
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
|
void |
addClickActionListener(jet.thinviewer.ClickActionListener clickActionListener)
Adds the click action listener. |
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
|
void |
exit()
When you want to quit from JReport Viewer Bean, you should call this method. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown)
Exports the current report to DHTML, which will be saved at client side. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown,
boolean noMarginHtml)
Exports the current report to DHTML formatted files, which will be saved at client side. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown,
boolean noMarginHtml,
int resolution)
Exports the current report to DHTML formatted files, which will be saved at client side. |
boolean |
exportToDhtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown,
boolean noMarginHtml,
int resolution,
int overflow)
Exports the current report to DHTML formatted files, which will be saved at client side. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown)
Exports the current report to HTML, which will be saved at client side. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown,
boolean noMarginHtml)
Exports the current report to HTML, which will be saved at client side. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown,
boolean noMarginHtml,
boolean isDhtml)
Exports the current report to HTML, which will be saved at client side. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown,
boolean noMarginHtml,
boolean isDhtml,
int resolution)
Exports the current report to HTML, which will be saved at client side. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown,
boolean noMarginHtml,
boolean isDhtml,
int resolution,
int overflow)
Exports the current report to HTML, which will be saved at client side. |
boolean |
exportToHtml(java.lang.String htmlFileName,
boolean bChartApplet,
boolean isMultiFile,
boolean bUsingTable,
boolean bHyperlink,
boolean bPageNumber,
boolean bAbsolute,
int iBrowser,
boolean drilldown,
boolean noMarginHtml,
boolean isDhtml,
int resolution,
int overflow,
int chartFormat)
Exports the current report to HTML, which will be saved at client side. |
boolean |
exportToPdf(java.lang.String pdfFileName)
Exports the current report to a PDF file, which will be saved at client side. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMarginPdf)
Exports the current report to a PDF file, which will be saved at client side. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMarginPdf,
boolean isSimPrintMode)
Exports the current report to a PDF file, which will be saved at client side. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMarginPdf,
boolean isSimPrintMode,
boolean isCompressImage)
Exports the current report to a PDF file, which will be saved at client side. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMarginPdf,
boolean isSimPrintMode,
int isCompressImage,
boolean isGifTrans)
Exports the current report to a PDF file, which will be saved at client side. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMarginPdf,
boolean isSimPrintMode,
int isCompressImage,
boolean isGifTrans,
boolean isToc,
boolean isDrilldown)
Exports the current report to a PDF file, which will be saved at client side. |
boolean |
exportToPdf(java.lang.String pdfFileName,
boolean noMarginPdf,
boolean isSimPrintMode,
int isCompressImage,
boolean isGifTrans,
boolean isToc,
boolean isDrilldown,
java.lang.String pdfPassword)
Exports the current report to a PDF file, which will be saved at client side. |
boolean |
exportToPS(java.lang.String psFileName)
Exports the current report to a PS (PostScript) file, which will be saved at client side. |
boolean |
exportToPS(java.lang.String psFileName,
boolean noMarginPs)
Exports the current report to a PS (PostScript) file, which will be saved at client side. |
boolean |
exportToRst(java.lang.String rstFileName)
Exports the current report to a result report (with the .rst extension), which will be saved at client side. |
boolean |
exportToRtf(java.lang.String rtfFileName)
Exports the current report to RTF (Rich Text Format), which will be saved at client side. |
boolean |
exportToRtf(java.lang.String rtfFileName,
boolean noMarginRtf)
Exports the current report to RTF (Rich Text Format), which will be saved at client side. |
boolean |
exportToText(java.lang.String txtFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter)
Exports the current report to a TEXT file, which will be saved at client side. |
boolean |
exportToText(java.lang.String txtFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int charWidth,
int charHeight)
Exports the current report to a TEXT file, which will be saved at client side. |
boolean |
exportToText(java.lang.String txtFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int charWidth,
int charHeight,
boolean isQuoteMark)
Exports the current report to a TEXT file, which will be saved at client side. |
boolean |
exportToText(java.lang.String txtFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int charWidth,
int charHeight,
boolean isQuoteMark,
boolean hasHeadfoot,
boolean bTxtCompress)
Exports the current report to a TEXT file, which will be saved at client side. |
boolean |
exportToText(java.lang.String txtFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int charWidth,
int charHeight,
boolean isQuoteMark,
boolean hasHeadfoot,
boolean bTxtCompress,
boolean forWindows)
Exports the current report to a TEXT file, which will be saved at client side. |
boolean |
exportToText(java.lang.String txtFileName,
boolean isNormalText,
boolean isRepeat,
char delimiter,
int charWidth,
int charHeight,
boolean isQuoteMark,
boolean hasHeadfoot,
boolean bTxtCompress,
boolean forWindows,
boolean isCsv,
boolean isTab)
Exports the current report to a TEXT file, which will be saved at client side. |
boolean |
exportToXls(java.lang.String xlsFileName)
Exports the current report to BIFF (Binary File Format), which will be saved at client side. |
boolean |
exportToXls(java.lang.String xlsFileName,
boolean excelLayout)
Exports the current report to BIFF (Binary File Format), which will be saved at client side. |
boolean |
exportToXls(java.lang.String xlsFileName,
int wordWrap)
Exports the current report to BIFF (Binary File Format), which will be saved at client side. |
boolean |
exportToXls(java.lang.String xlsFileName,
int wordWrap,
boolean excel2000)
Exports the current report to BIFF (Binary File Format), which will be saved at client side. |
boolean |
exportToXls(java.lang.String xlsFileName,
int wordWrap,
boolean excel2000,
boolean hasShapes)
Exports the current report to BIFF (Binary File Format), which will be saved at client side. |
boolean |
exportToXls(java.lang.String xlsFileName,
int wordWrap,
boolean excel2000,
boolean hasShapes,
boolean excelLayout)
Exports the current report to BIFF (Binary File Format), which will be saved at client side. |
boolean |
exportToXML(java.lang.String xmlFileName)
Exports the current report to XML. |
boolean |
exportToXML(java.lang.String xmlFileName,
boolean isOnlyData)
Exports the current report to XML, which will be saved at client side. |
boolean |
exportToXML(java.lang.String xmlFileName,
boolean isMultiFiles,
boolean isOnlyData)
Deprecated. As of JREntViewer version 5.1, |
boolean |
exportToXML(java.lang.String xmlFileName,
boolean isOnlyData,
java.lang.String xsdFile)
Exports the current report to XML, which will be saved at client side. |
java.lang.String |
firstPage()
Enables to go to the first page of the report. |
static java.util.Vector |
getAllMediaTray(java.lang.String printerName)
for getting all media tray for specifying printer. |
static java.util.Vector |
getAllPrinters()
for getting all the printers in the system. |
java.lang.String |
getCatName()
Gets the catalog name. |
java.lang.String |
getCountry()
Gets the country. |
int |
getCurrentPageNumber()
Gets the current page number of the report. |
java.lang.String |
getEncoding()
Gets the encoding. |
java.lang.String |
getFullPath()
Gets the full path for JReport Servlet. |
java.lang.String |
getLanguage()
Gets the language. |
java.lang.String |
getLoadReport()
|
java.util.Locale |
getLocale()
Gets the locale. |
java.awt.Dimension |
getMinimumSize()
|
int |
getPageOrientation()
Gets the page orientation. |
java.lang.String |
getPassword()
Gets the password to log in JReport Server. |
boolean |
getPopupErrorDialog()
Get the value about whether to pop up error message dialog. |
java.lang.String |
getPort()
Gets the port number of the server. |
java.awt.Dimension |
getPreferredSize()
|
java.lang.String |
getPrintStatus()
Gets the print status after printing. |
java.lang.String |
getProxyHost()
Returns the proxy host name or IP address. |
java.lang.String |
getProxyPassword()
Returns the password to log in the proxy server if needed. |
java.lang.String |
getProxyPort()
Returns the proxy port number. |
java.lang.String |
getProxyUser()
Returns the user name to log in the proxy server. |
java.lang.String |
getReportName()
Gets the report name. |
java.lang.String |
getReportSheetName()
Gets the report sheet name. |
java.lang.String |
getServerName()
Gets the server name or IP address where the report runs. |
boolean |
getSSL()
Gets current SSL state. |
java.lang.String |
getStatus()
Gets the status after an action. |
java.lang.String |
getStyle()
Gets the style group. |
java.lang.String |
getTaskListener()
Gets the task listener class's name |
java.lang.String |
getTempPath()
Gets the temporary path. |
int |
getTotalPageNumber()
Gets the total page number of the report. |
java.lang.String |
getUserName()
Gets the user name to log in JReport Server. |
boolean |
getViewInNewFrame()
Gets the status about whether the report will be viewed in a new Frame. |
int |
gotoPage(int pageNumber)
Enables to go to the specified page of the report. |
static boolean |
isJDK14Compatible()
|
boolean |
isShowButton()
Returns the status about whether to show the turning page buttons. |
java.lang.String |
lastPage()
Enables to go to the last page of the report. |
boolean |
loadReport(RandomInputable rInputable)
|
boolean |
loadReport(java.lang.String urlView)
|
void |
logout()
Enables to log out from JReport Server. |
void |
modifyDbUserInfo(java.lang.String sDbUserName,
java.lang.String sDbPassword)
Modifies the User and Password information in the specified database connection description. |
java.lang.String |
nextPage()
Enables to go to the next page of the report. |
java.lang.String |
prevPage()
Enables to go to the previous page of the report. |
void |
printEnd()
Listener when printing ends. |
void |
printReport()
Prints the report. |
void |
printReport(java.lang.Object job,
boolean bInteractive,
java.lang.Object pageFormat,
boolean bInBackground,
JReportPrintListener jreportprintlistener,
int useJDK,
java.lang.String jobName,
java.util.Vector attributeInfo,
java.lang.String printer)
Prints the report with the specified parameters. |
void |
printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11)
Prints the report with the specified parameters. |
void |
printReport(java.lang.Object printJob,
java.lang.Object pageFormat,
boolean bInteractive,
boolean bInBackground,
boolean bUseJDK11,
boolean bSeparateLargePage)
Prints the report with the specified parameters. |
void |
printReportJDK14(boolean bInteractive,
boolean bInBackground,
JReportPrintListener jreportprintlistener,
java.lang.String jobName,
java.util.Vector attributeInfo,
java.util.Vector customMedias,
java.lang.String printer)
Prints the report with the specified parameters. |
void |
printStart()
Listener when printing starts. |
void |
readExternal(java.io.ObjectInput in)
|
void |
runReport()
Launches to run JReport Viewer Bean. |
void |
setCatalogVersion(int verNumber)
Sets the catalog version number. |
void |
setCatName(java.lang.String catName)
Sets the catalog name. |
void |
setConnection(java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver)
Sets the connection required to run the engine. |
void |
setConnection(java.lang.String strURL,
java.lang.String strUID,
java.lang.String strPSWD,
java.lang.String strJdbcDriver,
boolean jdbcGetSupportInfo)
Sets the connection required to run the engine. |
void |
setCountry(java.lang.String rptCountry)
Sets the country. |
void |
setEncoding(java.lang.String rptEncoding)
Sets the encoding. |
void |
setFullPath(java.lang.String fullPath)
Sets the full path for JReport Servlet. |
void |
setLanguage(java.lang.String rptLanguage)
Sets the language. |
void |
setLoadReport(java.lang.String loadReport)
Enables/disables to run the report. |
void |
setLocale(java.util.Locale loc)
Sets the locale. |
boolean |
setLogFile(java.lang.String fileName)
Sets the log file. |
void |
setNamedWherePortion(java.lang.String name)
Sets the where portion name of the query. |
void |
setPassword(java.lang.String password)
Sets the password to log in JReport Server. |
void |
setPopupErrorDialog(boolean isPopErrorDialog)
Allows users to set whether to pop up the error message dialog while Exception occurs. |
void |
setPort(java.lang.String port)
Sets the port number of the server. |
void |
setProxyHost(java.lang.String proxyHost)
Sets the proxy host name or IP address if needed. |
void |
setProxyPassword(java.lang.String proxyPassword)
Sets the password to log in the proxy server if needed. |
void |
setProxyPort(java.lang.String proxyPort)
Sets the proxy port number. |
void |
setProxyUser(java.lang.String proxyUserName)
Sets the user name to log in the proxy server if needed. |
void |
setRandomInput(RandomInputable rInputable)
|
void |
setReportName(java.lang.String reportName)
Sets the report name. |
void |
setReportSheetName(java.lang.String reportSheetName)
Sets the report sheet name. |
void |
setReportVersion(int verNumber)
Sets the report version number. |
void |
setServerName(java.lang.String serverName)
Sets the server name or IP address. |
void |
setShowButton(boolean bShowButton)
Sets the status about whether to show the turning page buttons or not. |
void |
setShowInfoLevel(int level)
Enables/disables to output error and debug message. |
void |
setSSL(boolean SSL)
Sets the connection to use SSL or not. |
void |
setStyle(java.lang.String rptStyle)
Sets the style group. |
void |
setTaskListener(java.lang.String taskListenerClass)
Set the task listener class |
void |
setTempPath(java.lang.String sTempPath)
Sets the temporary path. |
void |
setURLAddress(java.lang.String sURLAddress)
|
void |
setUserName(java.lang.String userName)
Sets the user name to log in JReport Server. |
void |
setViewInNewFrame(boolean isViewInNewFrame)
Sets the property to indicate whether to view the report in a new Frame or not. |
void |
setWherePortion(java.lang.String where)
Sets the where portion name of the query. |
void |
writeExternal(java.io.ObjectOutput out)
|
void |
zoom(int zoomRatio)
Zooms the report. |
Methods inherited from class java.awt.Panel |
---|
addNotify, getAccessibleContext |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, remove, remove, removeAll, removeContainerListener, removeNotify, setComponentZOrder, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, dispatchEvent, enable, enable, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int vOff
public static final int vDebug
public static final int vError
public static final int LANDSCAPE
public static final int PORTRAIT
public static final int IE
public static final int NETSCAPE
Constructor Detail |
---|
public JRDirectViewer()
public JRDirectViewer(boolean showButton)
showButton
- boolean type, if it is true, the turning page buttons
will be shown.Method Detail |
---|
public void setURLAddress(java.lang.String sURLAddress)
public void setRandomInput(RandomInputable rInputable)
public void addClickActionListener(jet.thinviewer.ClickActionListener clickActionListener)
clickActionListener
- listens to the event when clicking on
a field in the viewer.public void setTempPath(java.lang.String sTempPath)
sTempPath
- the temporary path (absolute path).public java.lang.String getTempPath()
public void setViewInNewFrame(boolean isViewInNewFrame)
isViewInNewFrame
- Boolean, indicates whether to view the report
in a new Frame.public boolean getViewInNewFrame()
public void setPopupErrorDialog(boolean isPopErrorDialog)
isPopup,
- the value "true" indicates to pop up error message dialog, otherwise not to pop up.public boolean getPopupErrorDialog()
isPopup,
- the value "true" indicates to pop up error message dialog, otherwise not to pop up.public void setServerName(java.lang.String serverName)
serverName
- the name of the server where the report runs.public java.lang.String getServerName()
public void setPort(java.lang.String port)
port
- the port number of the server.public java.lang.String getPort()
public void setLocale(java.util.Locale loc)
setLocale
in class java.awt.Component
public java.util.Locale getLocale()
getLocale
in class java.awt.Component
public void setLanguage(java.lang.String rptLanguage)
public java.lang.String getLanguage()
public void setCountry(java.lang.String rptCountry)
public java.lang.String getCountry()
public void setEncoding(java.lang.String rptEncoding)
public java.lang.String getEncoding()
public void setStyle(java.lang.String rptStyle)
public java.lang.String getStyle()
public void setFullPath(java.lang.String fullPath)
fullPath
- if you access JReport Servlet, you must set
the servlet path, for example, setFullPath("/Jinfonet_Sybase/JReport");public java.lang.String getFullPath()
public java.lang.String getTaskListener()
TaskListener
public void setTaskListener(java.lang.String taskListenerClass)
java
- class's name which implemented API TaskListener, null if there needn't be task listener.TaskListener
public java.lang.String getReportName()
public void setReportName(java.lang.String reportName)
reportName
- the report name.public java.lang.String getReportSheetName()
public void setReportSheetName(java.lang.String reportSheetName)
reportSheetName
- the report sheet name.public void setReportVersion(int verNumber)
verNumber
- the report version number. The default value is '-1', which means the latest report version.public void setCatName(java.lang.String catName)
catName
- the catalog name.public void setCatalogVersion(int verNumber)
verNumber
- the catalog version number. The default value is '-1', which means the latest catalog version.public java.lang.String getCatName()
public void setUserName(java.lang.String userName)
userName
- the user name to log in JReport Server.public java.lang.String getUserName()
public void setPassword(java.lang.String password)
password
- the password to log in JReport Server.public java.lang.String getPassword()
public void modifyDbUserInfo(java.lang.String sDbUserName, java.lang.String sDbPassword)
public void setProxyUser(java.lang.String proxyUserName)
proxyUserName
- the user name to log in the proxy server if needed.setProxyPassword(java.lang.String)
public java.lang.String getProxyUser()
getProxyPassword()
public void setProxyPassword(java.lang.String proxyPassword)
proxyPassword
- the password to log in the proxy server if needed.setProxyUser(java.lang.String)
public java.lang.String getProxyPassword()
getProxyUser()
public void setProxyHost(java.lang.String proxyHost)
proxyHost
- the proxy host name or IP address if needed.setProxyPort(java.lang.String)
public java.lang.String getProxyHost()
getProxyPort()
public void setProxyPort(java.lang.String proxyPort)
proxyPort
- the proxy port number.setProxyHost(java.lang.String)
public java.lang.String getProxyPort()
getProxyHost()
public int getPageOrientation()
public boolean isShowButton()
public void setShowButton(boolean bShowButton)
public java.lang.String getLoadReport()
public void setLoadReport(java.lang.String loadReport)
loadReport
- a String, if it equals to "yes" (case insensitive)
the report will be run.public void runReport()
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
adjustmentValueChanged
in interface java.awt.event.AdjustmentListener
public java.awt.Dimension getMinimumSize()
getMinimumSize
in class java.awt.Container
public java.awt.Dimension getPreferredSize()
getPreferredSize
in class java.awt.Container
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public void printStart()
JReportPrintListener
printStart
in interface JReportPrintListener
public void printEnd()
JReportPrintListener
printEnd
in interface JReportPrintListener
public void printReport()
public void printReport(java.lang.Object printJob, java.lang.Object pageFormat, boolean bInteractive, boolean bInBackground, boolean bUseJDK11)
printJob
- the print job of this print action.pageFormat
- the page format of this print action.bInteractive
- a boolean value, if you set it to false,
the print setup dialog will not show up.bInBackground
- a boolean value, if you set it to false,
the printing dialog will not show up.bUseJDK11
- a boolean value, if you set it to true, it will use JDK1.2.x
to print the report. Otherwise if you set it to false, it will use the JDK
which you are running to print the report. The JDK 1.1 printing method is
quick in speed but the printing quality is not guaranteed. However, The
JDK 1.2 method can return you with satisfactory result, even for a gif file,
but it is slow in speed.
For example, you can call the printReport method like this:
PrinterJob printJob = PrinterJob.getPrinterJob();
bean.printReport(printJob, printJob.defaultPage(), false, false, false);public void printReport(java.lang.Object printJob, java.lang.Object pageFormat, boolean bInteractive, boolean bInBackground, boolean bUseJDK11, boolean bSeparateLargePage)
printJob
- the print job of this print action.pageFormat
- the page format of this print action.bInteractive
- a boolean value, if you set it to false, the print setup dialog will not show up.bInBackground
- a boolean value, if you set it to false, the printing dialog will not show up.bUseJDK11
- a boolean value, if you set it to true, it will use JDK1.2.x
to print the report. Otherwise if you set it to false, it will use the JDK
which you are running to print the report. The JDK 1.1 printing method is
quick in speed but the printing quality is not guaranteed. However, The
JDK 1.2 method can return you with satisfactory result, even for a gif file,
but it is slow in speed.
For example, you can call the printReport method like this:
PrinterJob printJob = PrinterJob.getPrinterJob();
bean.printReport(printJob, printJob.defaultPage(), false, false, false);bSeparateLargePage
- a boolean value, if the report page size is larger
than the print paper size, and you want to separate the large report page
during printing, you should set this property to true. If the print page size
which you choose is less than the report page size, the report will be
printed as multiple pages serially, this means we will separate the large
page of the report automatically.
After you set it to true, for JDK1.2 or higher, the page format dialog will
be popped up. In this dialog, you can choose the page format which you want
to print with, we will use this page size for printing. For JDK1.1.x, however,
you must change the page format which you want to print with in the print
dialog (click the property button, then choose the page format).
Note: This printing mothod is not recommended, it may cause some unexpected
errors, for example, you may get an extra blank page.public void printReport(java.lang.Object job, boolean bInteractive, java.lang.Object pageFormat, boolean bInBackground, JReportPrintListener jreportprintlistener, int useJDK, java.lang.String jobName, java.util.Vector attributeInfo, java.lang.String printer) throws jet.export.print.NoSuchPrintAttributeException
job
- the print job of this print action. It is an instance of PrintJob or PrinterJob.
You can pass a PrinterJob or PrintJob object. If you set a null value, a PrinterJob or PrintJob will be created for your task.
There needs to be a PrintJob object in JDK1.1 or a PrinterJob object in JDK1.2,JDK1.4 print method.
If you pass a printerjob which is not a null value and set parameter bInteractive to true,
information taken by printerjob will be reset by the values from print set up dialog such as Copies,PrintService,JobName.bInteractive
- a boolean value, if you set it to true, a print setup dialog will be presented to the user for changing the properties of the print job.
Otherwise the print setup dialog will not show up.pageFormat
- is an instance of PageFormat class, which describes the size and orientation of a page to be printed.
The pageFormat will take effect only with JDK1.1 or JDK1.2.
We recommend to use attributeInfo vector instead of the printFormat object with JDK1.4bInBackground
- a boolean value, if you set it to false,
show the printing progress dialog with printing progress bar in it.jreportprintlistener
- is the listener of print.
It is an interface which contains two methods printStart() and printEnd().
JeportPrintListener is located in jet.thinview.print package.
This interface is useful, when you want to get the print status -- start or end, for example. Otherwise, you can set it to null.useJDK
- an int value, if you set it to 0, it will use JDK1.1
to print the report. If you set it to 1, it will use the JDK1.2
which you are running to print the report. If you set it to 2, it will use the JDK1.4
which you are running to print the report. The JDK 1.1 printing method is
quick in speed but the printing quality is not guaranteed. However, The
JDK 1.2 method can return you with satisfactory result, even for a gif file,
but it is slow in speed. JDK 1.4 provides more options to do print such as specify tray.jobName
- print job name.attributeInfo
- is a vector whose elements are string.
Each String has been defined in interface PrintConfig.
For example,you can implement PrintConfig and call its fields like this:
attributeInfo.add(TRAY_MANUAL);
attributeInfo.add(ORIENTATION_PORTRAIT);printer
- specify the printer you want to use. This printer name must be with full path.
You can call getAllPrinters() method for jdk 1.4 to get the list of system printers.
This printReport method is recommended for jdk 1.4 or above only -- a lot of features are only supported by jdk 1.4 or above.
An example of calling this printReport() method:
PrinterJob printJob = PrinterJob.getPrinterJob();
Vector attributeInfo = new Vector();
attributeInfo.add(TRAY_MANUAL);
attributeInfo.add(ORIENTATION_PORTRAIT);
bean.printReport(printJob, true,printJob.defaultPage(),
false,null,2,"JReport",
attributeInfo,"\\\\192.168.128.111\\Samsung SCX-5x12 Series PCL 6");
jet.export.print.NoSuchPrintAttributeException
public void printReportJDK14(boolean bInteractive, boolean bInBackground, JReportPrintListener jreportprintlistener, java.lang.String jobName, java.util.Vector attributeInfo, java.util.Vector customMedias, java.lang.String printer) throws jet.export.print.NoSuchPrintAttributeException
bInteractive
- a boolean value, if you set it to true, a print setup dialog will be presented to the user for changing the properties of the print job.
Otherwise the print setup dialog will not show up.bInBackground
- a boolean value, if you set it to false,
show the printing progress dialog with printing progress bar in it.jreportprintlistener
- is the listener of print.
It is an interface which contains two methods printStart() and printEnd().
This interface is useful, when you want to get the print status -- start or end, for example. Otherwise, you can set it to null.jobName
- print job name.attributeInfo
- is a vector whose elements are string.
Each String has been defined in interface PrintConfig.
For example,you can implement PrintConfig and call its fields like this:
attributeInfo.add(TRAY_MANUAL);
attributeInfo.add(ORIENTATION_PORTRAIT);customMedias
- is a vector whose elements are some instance of CustomMedia.
Until now,JReport provides the following CustomMedia: CustomMediaCopies,CustomMediaMargin,CustomMediaTray.
CustomMediaCopies indicates printed copies.
CustomMediaMargin indicates page margin when printing. You may create an instance of CustomMediaMargin which includes four values representing left, right, top and bottom margin.
CustomMediaTray indicates special tray which is not standard tray defined in java.
If you want to specify a special tray, you must specify a printer name. Otherwise JReport will find this tray in default printer. If the specified printer does not have such a tray, JReport will throw a NoSuchPrintAttributeException.
If needed, you may get all media tray's names in a special printer by calling getAllMediaTray(String printerName).
You may create an instance of customMedias like below:
Vector customMedias = new Vector();
customMedias.add();
customMedias.add(new CustomMediaCopies(2));
customMedias.add(new CustomMediaMargin(10f, 12f, 10f, 15f,CustomMediaMargin.MM));
customMedias.add(new CustomMediaMargin(0.8f, 1f, 1.5f, 0.8f,CustomMediaMargin.INCH));
customMedias.add(new CustomMediaTray("Multi-Purpose Tray"));printer
- specify the printer you want to use. This printer name must be with full path.
You can call getAllPrinters() method for jdk 1.4 to get the list of system printers.
This printReportJDK14 method is only for jdk 1.4 or above.
An example of calling this printReportJDK14() method:
PrinterJob job = PrinterJob.getPrinterJob();
Vector attributeInfo = new Vector();
attributeInfo.add(PrintConfig.ORIENTATION_LANDSCAPE);
Vector customMedias = new Vector();
customMedias.add(new CustomMediaCopies(2));
customMedias.add(new CustomMediaMargin(0.8f, 1f, 1.5f, 2f,CustomMediaMargin.INCH));
customMedias.add(new CustomMediaTray("Multi-Purpose Tray"));
try
{
bean.printReportJDK14(true,false,null,"jobname", attributeInfo,customMedias,"\\\\192.168.128.111\\Samsung SCX-5x12 Series PCL 6");
}catch(NoSuchPrintAttributeException ec)
{
System.out.println(ec);
}
jet.export.print.NoSuchPrintAttributeException
public static boolean isJDK14Compatible()
public static java.util.Vector getAllMediaTray(java.lang.String printerName) throws jet.export.print.NoSuchPrintAttributeException
jet.export.print.NoSuchPrintAttributeException
public static java.util.Vector getAllPrinters()
public java.lang.String getPrintStatus()
public void setNamedWherePortion(java.lang.String name)
public void setWherePortion(java.lang.String where)
public boolean loadReport(java.lang.String urlView) throws java.io.IOException
java.io.IOException
public boolean loadReport(RandomInputable rInputable) throws java.io.IOException
java.io.IOException
public boolean exportToRst(java.lang.String rstFileName)
rstFileName
- the result file name.
public boolean exportToHtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.
public boolean exportToHtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown, boolean noMarginHtml)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.noMarginHtml
- indicates to generate the html files without page Margin.
public boolean exportToHtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown, boolean noMarginHtml, boolean isDhtml)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.noMarginHtml
- indicates to generate the html files without page Margin.isDhtml
- indicates if the file has DHTML format.
public boolean exportToHtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown, boolean noMarginHtml, boolean isDhtml, int resolution)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.noMarginHtml
- indicates to generate the html files without page Margin.isDhtml
- indicates if the file has DHTML format.resolution
- indicates the resolution of the HTML file.
public boolean exportToHtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown, boolean noMarginHtml, boolean isDhtml, int resolution, int overflow)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.noMarginHtml
- indicates to generate the html files without page Margin.isDhtml
- indicates if the file has DHTML format.resolution
- indicates the resolution of the HTML file.overflow
- indicates the text overflow type of the html file.
public boolean exportToHtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown, boolean noMarginHtml, boolean isDhtml, int resolution, int overflow, int chartFormat)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.noMarginHtml
- indicates to generate the html files without page Margin.isDhtml
- indicates if the file has DHTML format.resolution
- indicates the resolution of the HTML file.overflow
- indicates the text overflow type of the html file.chartFormat
- indicates the image chart format type of the HTML file.
public boolean exportToDhtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.
public boolean exportToDhtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown, boolean noMarginHtml)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.noMarginHtml
- indicates to generate the html files without page Margin.
public boolean exportToDhtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown, boolean noMarginHtml, int resolution)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.noMarginHtml
- indicates to generate the html files without page Margin.resolution
- indicates the resolution of the HTML file.
public boolean exportToDhtml(java.lang.String htmlFileName, boolean bChartApplet, boolean isMultiFile, boolean bUsingTable, boolean bHyperlink, boolean bPageNumber, boolean bAbsolute, int iBrowser, boolean drilldown, boolean noMarginHtml, int resolution, int overflow)
htmlFileName
- the HTML file name.bChartApplet
- indicates whether the chart in html file is exported
as an applet.isMultiFile
- indicates whether to export the html to
a file or to multiple files.bUsingTable
- indicates whether to use html table format
when exporting html filesbHyperlink
- indicates whether to generate a hyperlinkbPageNumber
- indicates whether to generate page numbersbAbsolute
- indicates the font size is absolute or relativeiBrowser
- indicates the browser is IE or Firefox. The value of
parameter int browser must be one of the IE or Firefox.drilldown
- indicates whether to enable drilldown in the html files.noMarginHtml
- indicates to generate the html files without page Margin.resolution
- indicates the resolution of the HTML file.overflow
- indicates the text overflow type of the html file.
public boolean exportToPdf(java.lang.String pdfFileName)
pdfFileName
- the name of the PDF file.
public boolean exportToPdf(java.lang.String pdfFileName, boolean noMarginPdf)
pdfFileName
- the name of the PDF file.noMarginPdf
- indicates to generate the pdf file without page margin.
public boolean exportToPdf(java.lang.String pdfFileName, boolean noMarginPdf, boolean isSimPrintMode)
pdfFileName
- the name of the PDF file.noMarginPdf
- indicates to generate the pdf file without page margin.isSimPrintMode
- If true, generate charts and barcodes using vector graphics.
If false, generate charts and barcodes using images. The recommended value is false.
public boolean exportToPdf(java.lang.String pdfFileName, boolean noMarginPdf, boolean isSimPrintMode, boolean isCompressImage)
pdfFileName
- the name of the PDF file.noMarginPdf
- indicates to generate the pdf file without page margin.isSimPrintMode
- If true, generate charts and barcodes using vector graphics.
If false, generate charts and barcodes using images. The recommended value is false.isCompressImage
- indicates whether to compress the images in the pdf file.
public boolean exportToPdf(java.lang.String pdfFileName, boolean noMarginPdf, boolean isSimPrintMode, int isCompressImage, boolean isGifTrans)
pdfFileName
- the name of the PDF file.noMarginPdf
- indicates to generate the pdf file without page margin.isSimPrintMode
- If true, generate charts and barcodes using vector graphics.
If false, generate charts and barcodes using images. The recommended value is false.isCompressImage
- indicates whether to compress the images in the pdf file.isGifTrans
- indicates whether the image is transparent or not.
public boolean exportToPdf(java.lang.String pdfFileName, boolean noMarginPdf, boolean isSimPrintMode, int isCompressImage, boolean isGifTrans, boolean isToc, boolean isDrilldown)
pdfFileName
- the name of the PDF file.noMarginPdf
- indicates to generate the pdf file without page margin.isSimPrintMode
- If true, generate charts and barcodes using vector graphics.
If false, generate charts and barcodes using images. The recommended value is false..isCompressImage
- indicates whether to compress the images in the pdf file.isGifTrans
- indicates whether the image is transparent or not.isToc
- indicates whether the pdf file has TOC.isDrilldown
- indicates whether to enable drilldown in the pdf file.
public boolean exportToPdf(java.lang.String pdfFileName, boolean noMarginPdf, boolean isSimPrintMode, int isCompressImage, boolean isGifTrans, boolean isToc, boolean isDrilldown, java.lang.String pdfPassword)
pdfFileName
- the name of the PDF file.noMarginPdf
- indicates to generate the pdf file without page margin.isSimPrintMode
- If true, generate charts and barcodes using vector graphics.
If false, generate charts and barcodes using images. The recommended value is false.isCompressImage
- indicates whether to compress the images in the pdf file.isGifTrans
- indicates whether the image is transparent or not.isToc
- indicates whether the pdf file has TOC.isDrilldown
- indicates whether to enable drilldown in the pdf file.pdfPassword
- indicates to encrypt the pdf file.
public boolean exportToText(java.lang.String txtFileName, boolean isNormalText, boolean isRepeat, char delimiter)
textFileName
- the TEXT file name.isNormalText
- sets whether this text file is in the normal text format
or standard data format
The standard data format text file is the text file in which each row represents each record in the report. It can be used as a text data source to exchange data with other applications.
isRepeat
- indicates whether to repeat the same contents.delimiter
- the delimiter used in the SDF (Standard Data Format) format
public boolean exportToText(java.lang.String txtFileName, boolean isNormalText, boolean isRepeat, char delimiter, int charWidth, int charHeight)
textFileName
- the TEXT file name.isNormalText
- sets whether this text file is in the normal text format
or standard data format
The standard data format text file is the text file in which each row represents each record in the report. It can be used as a text data source to exchange data with other applications.
isRepeat
- indicates whether to repeat the same contents.delimiter
- the delimiter used in the SDF (Standard Data Format) format.charWidth
- the width for each unit of the width clearance between columns.charHeight
- the height for each unit of the height clearance between columns.
public boolean exportToText(java.lang.String txtFileName, boolean isNormalText, boolean isRepeat, char delimiter, int charWidth, int charHeight, boolean isQuoteMark)
textFileName
- the TEXT file name.isNormalText
- sets whether this text file is in the normal text format
or standard data format
The standard data format text file is the text file in which each row represents each record in the report. It can be used as a text data source to exchange data with other applications.
isRepeat
- indicates whether to repeat the same contents.delimiter
- the delimiter used in the SDF (Standard Data Format) formatcharWidth
- the width for each unit of the width clearance between columns.charHeight
- the height for each unit of the height clearance between columns.isQuoteMark
- keeps the quote character in standard format text
public boolean exportToText(java.lang.String txtFileName, boolean isNormalText, boolean isRepeat, char delimiter, int charWidth, int charHeight, boolean isQuoteMark, boolean hasHeadfoot, boolean bTxtCompress)
textFileName
- the TEXT file name.isNormalText
- sets whether this text file is in the normal text format
or standard data format
The standard data format text file is the text file in which each row represents each record in the report. It can be used as a text data source to exchange data with other applications.
isRepeat
- indicates whether to repeat the same contents.delimiter
- the delimiter used in the SDF (Standard Data Format) formatcharWidth
- the width for each unit of the width clearance between columns.charHeight
- the height for each unit of the height clearance between columns.isQuoteMark
- keeps the quote character in standard format texthasHeadfoot
- whether to include Header and footer in the SDF format.bTxtCompress
- compresses the file.
public boolean exportToText(java.lang.String txtFileName, boolean isNormalText, boolean isRepeat, char delimiter, int charWidth, int charHeight, boolean isQuoteMark, boolean hasHeadfoot, boolean bTxtCompress, boolean forWindows)
textFileName
- the TEXT file name.isNormalText
- sets whether this text file is in the normal text format
or standard data format
The standard data format text file is the text file in which each row represents each record in the report. It can be used as a text data source to exchange data with other applications.
isRepeat
- indicates whether to repeat the same contents.delimiter
- the delimiter used in the SDF (Standard Data Format) formatcharWidth
- the width for each unit of the width clearance between columns.charHeight
- the height for each unit of the height clearance between columns.isQuoteMark
- keeps the quote character in standard format texthasHeadfoot
- whether to include Header and footer in the SDF format.bTxtCompress
- compresses the fileforWindows
- the text file has \r\n format carriage return.
public boolean exportToText(java.lang.String txtFileName, boolean isNormalText, boolean isRepeat, char delimiter, int charWidth, int charHeight, boolean isQuoteMark, boolean hasHeadfoot, boolean bTxtCompress, boolean forWindows, boolean isCsv, boolean isTab)
textFileName
- the TEXT file name.isNormalText
- sets whether this text file is in the normal text format
or standard data format
The standard data format text file is the text file in which each row represents each record in the report. It can be used as a text data source to exchange data with other applications.
isRepeat
- indicates whether to repeat the same contents.delimiter
- the delimiter used in the SDF (Standard Data Format) formatcharWidth
- the width for each unit of the width clearance between columns.charHeight
- the height for each unit of the height clearance between columns.isQuoteMark
- keeps the quote character in standard format texthasHeadfoot
- whether to include Header and footer in the SDF format.bTxtCompress
- compresses the fileforWindows
- the text file has \r\n format carriage return.isCsv
- csv formatisTab
- tab delimited
public boolean exportToRtf(java.lang.String rtfFileName)
rtfFileName
- the Rtf file name.
public boolean exportToRtf(java.lang.String rtfFileName, boolean noMarginRtf)
rtfFileName
- the Rtf file name.noMarginRtf
- indicates to generate the Rtf file without page margin.
public boolean exportToXML(java.lang.String xmlFileName)
xmlFileName
- the XML file name.
public boolean exportToXML(java.lang.String xmlFileName, boolean isMultiFiles, boolean isOnlyData)
xmlFileName
- the XML file name.isMultiFiles
- indicates whether XML is generated to a file or to multiple files (To XML).isOnlyData
- indicates that only database column information is exported to the XML file,
otherwise all report details including all the properties will be exported.
public boolean exportToXML(java.lang.String xmlFileName, boolean isOnlyData)
xmlFileName
- the XML file name.isOnlyData
- indicates that only database column information is exported to the XML file,
otherwise all report details including all the properties will be exported.
public boolean exportToXML(java.lang.String xmlFileName, boolean isOnlyData, java.lang.String xsdFile)
xmlFileName
- the XML file name.isOnlyData
- indicates that only database column information is exported to the XML file,
otherwise all report details including all the properties will be exported.xsdFile
- indicates the xsd file path.
public boolean exportToXls(java.lang.String xlsFileName)
xlsFileName
- the Xls file name.
public boolean exportToXls(java.lang.String xlsFileName, boolean excelLayout)
xlsFileName
- the Xls file name.excelLayout
- whether the Xls file preserves report formatting.
public boolean exportToXls(java.lang.String xlsFileName, int wordWrap)
xlsFileName
- the Xls file name.wordWrap
- the Xls file has word wrap.
public boolean exportToXls(java.lang.String xlsFileName, int wordWrap, boolean excel2000)
xlsFileName
- the Xls file name.wordWrap
- the Xls file has word wrap.excel2000
- the Xls file has excel2000 format.
public boolean exportToXls(java.lang.String xlsFileName, int wordWrap, boolean excel2000, boolean hasShapes)
xlsFileName
- the Xls file name.wordWrap
- the Xls file has word wrap.excel2000
- the Xls file has excel2000 format.hasShapes
- the Xls file has shapes.
public boolean exportToXls(java.lang.String xlsFileName, int wordWrap, boolean excel2000, boolean hasShapes, boolean excelLayout)
xlsFileName
- the Xls file name.wordWrap
- the Xls file has word wrap.excel2000
- the Xls file has excel2000 format.hasShapes
- the Xls file has shapes.excelLayout
- whether the Xls file preserves report formatting.
public boolean exportToPS(java.lang.String psFileName)
psFileName
- the PS file name.
public boolean exportToPS(java.lang.String psFileName, boolean noMarginPs)
psFileName
- the PS file name.noMarginPs
- indicates to generate the PS file without page margin.
public void exit()
public void logout()
public java.lang.String getStatus()
public int getCurrentPageNumber()
public int getTotalPageNumber()
public int gotoPage(int pageNumber)
pageNumber
- the specified page number.
public java.lang.String firstPage()
public java.lang.String prevPage()
public java.lang.String nextPage()
public java.lang.String lastPage()
public void setShowInfoLevel(int level)
level
- the debug level, for example, vDebug | vErrorpublic boolean setLogFile(java.lang.String fileName)
fileName
- the log file name
LogFileName specifies where the debug, error and other information will go. LogFileName contains both the path and the file name. If no path is specified, the current path is used. If no file name is specified, the file jreport.log is used.
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
public void setConnection(java.lang.String strURL, java.lang.String strUID, java.lang.String strPSWD, java.lang.String strJdbcDriver)
strURL,
- the URL of the database.strUID,
- the user id for the JDBC driver.strPSWD,
- the password for the JDBC driver.strJdbcDriver,
- the JdbcDriver.public void setConnection(java.lang.String strURL, java.lang.String strUID, java.lang.String strPSWD, java.lang.String strJdbcDriver, boolean jdbcGetSupportInfo)
strURL,
- the URL of the database.strUID,
- the user id for the JDBC driver.strPSWD,
- the password for the JDBC driver.strJdbcDriver,
- the JdbcDriver.jdbcGetSupportInfo
- whether to re-get the JDBC support information for the new JDBC setting.
Default value is "false".public void zoom(int zoomRatio)
public void setSSL(boolean SSL)
SSL
- boolean, indicates whether to use SSL connection.public boolean getSSL()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |