Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
191
Добавлен:
11.05.2015
Размер:
4.96 Mб
Скачать

CRPEJob::SetNthParam

Syntax

SetNthParam (paramN SMALLINT, paramValue CHAR (*)) RETURNING BOOLEAN

Parameters

paramN

Specifies which parameter in the stored procedure you want to set the value of. The first

 

parameter of a stored procedure is 0, the second is 1, etc.

paramValue

Specifies the new value of the indicated parameter. This value must be a string. Please

 

see Remarks below.

 

 

Remarks

 

Sets the value of a parameter in a stored procedure. Use this method when working with stored procedures in SQL database tables to set the value of a parameter in a stored procedure. When passing parameter values, all parameter values must be passed as string values. If you wish to pass a numeric value, pass the value in quotes like this: “100”.

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PEGetNthParam, Volume 2, Chapter 1

CRPEJob::SetNthSortField

Use SetNthSortField to specify that the report data is sorted according to the specified field and direction.

Syntax

SetNthSortField (sortFieldN SMALLINT, field CHAR(*), direction SMALLINT) RETURNING BOOLEAN

Crystal Class Library for NewEra Reference

451

Parameters

sortFieldN

Specifies the 0-based number of the sort field that you want to set. The first sort field

 

added to the report is field 0, the second is 1, etc. If the report has N sort fields, the

 

function can be called with this parameter between 0 and N-1 to replace an existing sort

 

field. Call the function with this parameter equal to N to add a new sort field.

 

 

field

Specifies the name of the field to be sorted.

 

 

direction

Specifies one of the Sort Order Constants (page 480).

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PESetNthSortField, Volume 2, Chapter 1

CRPEJob::SetNthTableLocation

Use SetNthTableLocation to set the table location information for the specified table in the report. This method is typically combined with CRPEJob::GetNthTableLocation, Page 428, to identify the location of a table and then to change it.

Syntax

SetNthTableLocation (tableN SMALLINT, tableLocation CRPETableLocation) RETURNING BOOLEAN

Parameters

tableN

Specifies the 0-based number of the table for which you want to set a new location.

 

 

tableLocation

Specifies a pointer to class CRPETableLocation (page 475).

 

 

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PESetNthTableLocation, Volume 2, Chapter 1

Crystal Class Library for NewEra Reference

452

CRPEJob::SetNthTableLogOnInfo

Syntax

SetNthTableLogonInfo (tableN SMALLINT, logonInfo CRPELogOnInfo, propagate BOOLEAN) RETURNING BOOLEAN

Parameters

tableN

Specifies the 0-based number of the table for which you want to set log on information.

logonInfo

Specifies a pointer to class CRPELogOnInfo (page 470).

 

 

propagate

TRUE or FALSE value indicating whether the log on information should be used for

 

opening all tables being used in the report.

 

 

Remarks

 

This method sets SQL connection information for the specified table. The propagate flag may be used to cause the change to affect all tables with similar server and database properties.

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PESetNthTableLogOnInfo, Volume 2, Chapter 1

CRPEJob::SetNthTableSessionInfo

Syntax

SetNthTableSessionInfo (tableN SMALLINT, sessionInfo CRPESessionInfo, propagate BOOLEAN) RETURNING BOOLEAN

Parameters

tableN

0 indexed table number indicating which MS Access table in the report the session is

 

being opened for.

 

 

sessionInfo

Specifies a pointer to class CRPESessionInfo (page 474).

 

 

propagate

TRUE or FALSE value indicating whether the session information should be used for

 

opening all tables being used in the report.

Crystal Class Library for NewEra Reference

453

Remarks

This methods sets session information for the specified Microsoft Access table. Many MS Access database tables require that a session be opened before the table can be used. Use this method to open the session.

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PESetNthTableSessionInfo, Volume 2, Chapter 1

CRPEJob::SetPrintDate

Syntax

SetPrintDate (v_year SMALLINT, v_month SMALLINT, v_day SMALLINT) RETURNING

BOOLEAN

Parameters

v_year

Specifies the year of the new print date.

 

 

v_month

Specifies the month of the new print date.

 

 

v_day

Specifies the day of the new print date.

Remarks

This method sets the print date for the report. This method does not schedule the report to print at a different time or day, but only changes the date that appears in any Print Date Field that appears on the report. Use this method, for example, to post date a report when it is printed before the day it is distributed.

Returns

TRUE if the call is successful.

FALSE if the call fails.

Related Topics

PESetPrintDate, Volume 2, Chapter 1

Crystal Class Library for NewEra Reference

454

Соседние файлы в папке crystal