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

Remarks

This method only works when ReportSource = 3, Data Control Fields. It does not work when ReportSource = 1, Bound TrueDBGrid Control.

The first parameter, ColumnNum, specifies the column number (zero indexed).

The second parameter, ColumnName, is the name of the column as it appears in the data control.

The third parameter is the column width, in characters.

To use the default width for the type of column, pass -1 as the third parameter.

ActiveX Controls Error Messages

Error #

Error

Message/Explanation

 

 

 

 

 

 

400

PE_ERR_CONFLICTLOGON

“Do not use both Connect property and LogonInfo

 

INFOCONNECT

property.”

 

 

This message appears if you try to set both of these

 

 

properties at the same time.

401

PE_ERR_REPORTFILENAME

“ReportFileName property must be set before calling

 

NOTSET

method.”

 

 

Some methods retrieve information from a report. This

 

 

message appears if you try to call these methods before

 

 

setting the ReportFileName property. The methods are:

 

 

FetchSelectionFormula

 

 

ReplaceSelectionFormula

 

 

RetrieveDataFiles

 

 

RetrieveSQLQuery

 

 

RetrieveStoredProcParams

 

 

GetNSubreports

 

 

 

402

PE_ERR_SELECTION

“Do not use both SelectionFormula and

 

FORMULACONFLICT

ReplaceSelectionFormula.”

 

 

ReplaceSelectionFormula is a method. This message

 

 

appears if you attempt to use it after SelectionFormula.

 

 

 

403

PE_ERR_BADDLL

“DLL name must be specified.”

 

 

This message appears if you call the LogOnServer

 

 

method and don’t specify the DLLname parameter.

Crystal ActiveX Control Reference

278

Error #

Error

Message/Explanation

 

 

 

 

 

 

404

PE_ERR_STRING

“A string is too long.”

 

TOOLONG

This message appears:

 

 

if you set an element of the ParameterFields

 

 

property to a string whose value part is greater

 

 

than 256 characters, or

 

 

if you call the LogOnServer method, and the server,

 

 

database, userid, or password parameters are

 

 

greater than 128 characters.

 

 

 

405

PE_ERR_BADSUBREPORT

“Invalid Subreport index.”

 

INDEX

This message appears if you call the method

 

 

GetNthSubreportName and the first parameter does not

 

 

correspond to a subreport.

 

 

 

406

PE_ERR_BADSUBREPORT

“Unknown Subreport name.”

 

NAME

This message appears if you set the SubreportToChange

 

 

property to the name of a subreport that does not exist in

 

 

the current report.

 

 

 

407

PE_ERR_ODBCTABLE

“Need ODBC table name for export.”

 

NOTSET

This message appears when you attempt to export to

 

 

ODBC without setting the PrintFileODBCTable property.

 

 

 

Crystal ActiveX Control Reference

279

Volume 3

 

6

Crystal Report Engine

 

Object Model for the Automation

 

Server

What you will find in this chapter...

Overview of the Crystal Report Engine Object Model, Page 282

...including object hierarchy, object naming conflicts, and object model events.

Crystal Report Engine Object Model Reference, Page 283

Objects and Collections, Page 284

...including Properties, Methods, and Events.

Error Codes, Page 390

...including Automation Server Error Codes and comments regarding Report Engine Error Codes.

Crystal Report Engine Object Model for the Automation Server

281

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