Specifies the type of report output the ReportListener produces.
|
|---|
ReportListener.ListenerType [= iExpr] |
Return Value
Integer data type.
The following table lists the values recognized by Visual FoxPro natively.
|
Native ListenerType
|
Output Result
|
|
-1
|
(Default) This is the base state of the abstract ReportListener native class. It produces no output.
|
|
0
|
The ReportListener renders output page by page, sending rendering events to a printer driver.
|
|
1
|
The ReportListener renders all pages, and then makes the output pages available to a new Xbase component stored in _REPORTPREVIEW. This ListenerType takes no action if there is no _REPORTPREVIEW object available.
|
|
2
|
The ReportListener renders output page by page, but does not send it to a printer. You can use the output by writing code in the OutputPage method, which is invoked as each page is produced.
|
|
3
|
The ReportListener renders all pages at once, and does not explicitly call _REPORTPREVIEW. You can use the output by writing code after the report run, calling OutputPage to instruct the ReportListener to send a page to your chosen target device.
|
The Report Output Application adds some user-defined rendering results to the native set above. However, using these values do not prevent you from receiving native Visual FoxPro output results simultaneously from the same ReportListener object, according to the native ListenerType values above. For more information, see OutputType Property (Visual FoxPro).
|
Call Report Output Application with
|
Output Result
|
|
4
|
The ReportListener provides an XML file as output. By default, its ListenerType is -1 (no native output). You can also set its ListenerType property to one of the natively supported values, for two types of output at once.
|
|
5
|
The ReportListener provides an HTML file, and optional subsidiary image files, as output. By default, its ListenerType is -1 (no native output). You can also set its ListenerType property to one of the natively supported values, for two types of output at once.
|
Remarks
Example
The following code comes from the OutputType_assign method of the ReportListener Base Foundation Class, the class from which UpdateListener descends. The code checks to see if the value received as OutputType is one of the ListenerType values the class supports, and assigns the value to ListenerType if it is.
| | Copy Code |
|---|
IF THIS.SupportsListenerType(THIS.OutputType)
THIS.ListenerType = THIS.OutputType
ENDIF |
See Also