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

Parameters

ZoomLevel

Specifies integer indicating the percentage of the magnification for viewing the report.

 

Can be CRZoomLevel (see table below) for Page Width and Whole Page. Otherwise,

 

indicate zoom level percentage as an integer.

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

crPageWidth

1

 

 

 

 

crWholePage

2

 

 

 

Remarks

Before enabling this event, the HasZoomControl property of the PrintWindowOptions Object, Page 347, must be set to TRUE. For more information, see Object Model Events, Page 283.

Error Codes

The following topics are discussed in this section.

Automation Server Error Codes, Page 390

Report Engine Error Codes, Page 391

Automation Server Error Codes

The Crystal Report Engine Automation Server generates the following error codes, as needed:

Value

Error Code

Description

 

 

 

 

 

 

30001

CPEAUT_STANDARD_OUTOFMEMORY

There is not enough memory to complete the

 

 

action.

 

 

 

30002

CPEAUT_STANDARD_INVALDHANDLE

A handle that is invalid has been specified

 

 

or does not exist.

 

 

 

30003

CPEAUT_STANDARD_INVALIDPOINTER

A pointer that is invalid has been specified

 

 

or does not exist.

 

 

 

30004

CPEAUT_STANDARD_BADINDEX

An invalid (bad) value has been specified for

 

 

an index.

 

 

 

30005

CPEAUT_STANDARD_TYPEMISMATCH

Wrong data type was used.

 

 

 

30006

CPEAUT_STANDARD_UNKNOWNNAME

The specified name can not be found in the

 

 

report.

 

 

 

30007

CPEAUT_STANDARD_MEDIUMFULL

The storage medium (disk drive) is full.

Crystal Report Engine Object Model for the Automation Server

390

Value

Error Code

Description

 

 

 

 

 

 

30008

CPEAUT_STANDARD_NOTIMPL

Internal error.

 

 

 

30009

CPEAUT_ERR_NOTGROUPAREA

A group area was expected, but the area

 

 

specified was not a group area.

 

 

 

30010

CPEAUT_ERR_STRINGOUTOFRANGE

The string value passed is out of the range of

 

 

possible values.

 

 

 

30011

CPEAUT_ERR_NODATABASE

There is no database available.

30012

CPEAUT_ERR_INVALIDENUMVALUE

An invalid enumerated value has been set.

 

 

 

30013

CPEAUT_ERR_NOTDETAILAREA

A details area was expected, but the area

 

 

specified was not a details area.

 

 

 

30014

CPEAUT_ERR

The object specified is not an Areas or

 

_NOTAREASECTIONCOLLECTION

Sections collection.

 

 

 

30015

CPEAUT_ERR_32NOTSUPPORTED

A 32-bit-only feature has been evoked in an

 

 

environment that does not support it.

 

 

 

30016

CPEAUT_ERR_INVALIDKEY

A key that is invalid or does not exist has

 

 

been specified.

30017

CPEAUT_ERR_FEATURENOTENABLED

A feature has been evoked that is not yet

 

 

enabled.

 

 

 

30018

CPEAUT_ERR_DATABASELINKEXIST

An error has occurred due to the database

 

 

links.

30019

CPEAUT_ERR_CREATETEMPFILEFAILED

Creation of a temporary file has been

 

 

unsuccessful.

 

 

 

30020

CPEAUT_ERR_RENDERTOHTMLFAILED

Rendering to using RenderHTML, Page 331,

 

 

HTML has been unsuccessful.

Report Engine Error Codes

The Crystal Report Engine Automation Server will also report error codes passed to it from the Crystal Report Engine API. The values of these codes are identical to the Report Engine error code value plus 20000. For example, the value of the Report Engine error PE_ERR_NOTENOUGHMEMORY is 500. The value of the equivalent error reported by the automation server is 20500.

For complete information on these errors, search for Report Engine error codes in the Developer’s online Help.

Crystal Report Engine Object Model for the Automation Server

391

Volume 3

 

7

Crystal Class Library for NewEra

 

Reference

What you will find in this chapter...

The Crystal NewEra Class Library, Page 394

...including an overview of the Crystal Class Library for Informix NewEra.

class CRPEngine, Page 394

...including the class constructor, and the class methods, listed alphabetically.

class CRPEJob, Page 403

...including the class constructor, and the class methods, listed alphabetically.

Other NewEra Classes, Page 461

...including the NewEra data structure classes and their constructors. Class Constants, Page 477

...including some of the more widely used NewEra Constants.

Crystal Class Library for NewEra Reference

393

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