Class: cCrystal
Main crystal report class
Class Hierarchy:
cObject

cCrystalClass Definition
Properties
Integer
Display_Error_State
if set to false, Crystal errors will not be sent to the error object.
integer
Error_Processing_State
Handle
Old_Error_Object_Id
Boolean
pbAutoLocateDFFiles
controls if dat or int files are automatically located.
Boolean
pbCanceled
Can be set true by the developer within the events to stop a report from running.
Boolean
pbCancelIfError
Determines if a report is canceled if an error occurs. This can changed as often as needed to handle any particular
section of code. If you want to try to handle an error, set this false (and be careful).
Boolean
pbHasErrors
Integer
peOutputDestination
destination of report
Handle
phcExportObject
Handle
phcPreviewObject
Handle
phcReportObject
Handle of classes used. Can be used to change the class of the composite child reportobject class
Handle
phoReportObject
report com object.
String
psReportName
name of report to be run
Functions and Procedures
handle
ApplicationObject()
returns handle of attached com applicaton object. This creates this as a global object
which is assigned to ghoCrystalReportServer. It then does a com attach. If the attach fails,
zero is returned indicating failure. This can be used to test if the crystal rdc com objects
are installed.

CloseReport()

Construct_Object()
String
CrystalDate(DateTime dtVal)
String
CrystalInteger(Integer iVal)
String
CrystalNumber(Number nVal)
String
CrystalString(String sVal)

DestroyReportObject()

DisplayReport(Handle hoReport)
Can be sent by developer (and possible augmented) in more advanced situations

Error_Report(integer ErrNum integer iErrLine string ErrMsg)
when RunReport is called, errors are directed here.

ExportReport(Handle hoReport)
Can be sent by developer (and possible augmented) in more advanced situations

OnDisplayReport(Handle hoReport)
Intended to be used by developer

OnError(integer ErrNum integer iErrLine string ErrMsg)
Event called by Error_Report. For augmentation.

OnExportReport(Handle hoReport)
Intended to be used by developer

OnInitializeReport(Handle hoReport)
Intended to be used by developer

OnPrintReport(Handle hoReport)
Intended to be used by developer
Boolean
OpenReport()
Creates report object if it doesn't exist. Opens psReportName.
Integer
Output_Destination()
Gets / Sets report output destination. Will return output device mode of report view if none specified.

OutputReport()

PrintReport(Handle hoReport)
Can be sent by developer (and possible augmented) in more advanced situations
String
Report_Name()
Get / sets report name
Handle
ReportObject()
Return handle to existing report

Run_Report()
compatibility methods

RunReport()

Set(String sReportName)

Set(Integer DevMode)
Instances
oEvalObj | cInternetSessionBusinessProcess.pkg | 88 |
References (8):