[ROOT] --> C++Client
The PCREEngineclass encapsulates the interaction with the crystal engine.
friend class PCREServer ; | |
friend class PCREJob ; |
CanClose
Close
getClient
GetErrorCode
GetErrorText
GetHandleString
getStatus
GetVersion
LogoffServer
LogonServer
Open
OpenJob
OpenSubreport
ParallelPrintReport
PrintReport
enum EngineStatus { engineClosed = 0 ,
engineOpened = 1 ,
serverDisconnected = 2 } ;
PCREClient * getClient ( ) ;
Return the print-engine client.
EngineStatus getStatus ( ) ;
Check on the status of the engine.
BOOL Open ( ) ;
Open a new print engine.
void Close ( ) ;
Close the print engine.
BOOL CanClose ( ) ;
Query the print engine to see if it is closeable.
short GetVersion ( int versionRequested ) ;
Get the version of this report engine.
PCREJob * OpenJob ( const char * reportFileName ) ;
Open a report using this engine.
| reportFileName | The path and filename of the report file to open. |
PCREJob * OpenSubreport ( PCREJob * parentJob ,
const char * subreportName ) ;
Open a subreport within a job's current report.
| parentJob | The job associated with the report containing the subreport. |
| subreportName | The name of the subreport within parentJob's report. |
void PrintReport ( const char * reportFileName ) ;
Print a given report.
| reportFile | The path and filename of the report file which is to be printed. |
BOOL LogonServer ( const char * dllName ,
PELogOnInfo * info ) ;
Log on to a database server.
| dllName | The DLL to use for the data source which you wish to log on to. |
| info | The login information to use. |
BOOL LogoffServer ( const char * dllName ,
PELogOnInfo * info ) ;
Log off a database server.
| dllName | The DLL to use for the data source which you wish to log off. |
| info | The login information to use for logging off the database. |
void ParallelPrintReport ( const char * reportFileName ,
unsigned printers ,
unsigned mode ,
const char * password ,
const char * outFileName ) ;
Parallel Print a given report
| reportFilePath | The path and filename of the report file which is to be printed. |
| printers | the number of parallel print processes; if given as zero the number of processors on the server is used. |
| mode | Set to 1 for parallel Pass2. |
| password | The database logon password; the rest of the logon information will be in the report; if given as null, no logon will be done. |
| outFilePath | The output file name; if given as null, the output file is |
short GetErrorCode ( ) ;
Issue a PEGetErrorCode call.
const char * GetErrorText ( ) ;
Issue a PEGetErrorStr call.
BOOL GetHandleString ( HANDLE textHandle ,
short textLength ,
char * & textBuffer ) ;
Issue a PEGetHandleString call.