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

Property

Description

Read/Write

 

 

 

 

 

 

Progress

Returns CRPrintingProgress (see table below) indicating the

Read only

 

status of printing report (that is, cancelled, in progress, not

 

 

started, etc.).

 

 

Corresponds to PEJobInfo, Volume 2, Chapter 1, and

 

 

PEGetJobStatus, Volume 2, Chapter 1.

 

 

 

 

Constant

Value

 

 

 

 

crPrintingCancelled

5

 

 

crPrintingCompleted

3

crPrintingFailed

4

 

 

crPrintingHalted

6

 

 

crPrintingInProgress

2

 

 

crPrintingNotStarted

1

Property

Description

Read/Write

 

 

 

 

 

 

RecordsPrinted

Returns the number of records actually printed. You will

Read only

 

receive an incorrect result if you try to obtain this value

 

 

immediately after using a method such as ShowNextPage,

 

 

Page 378, that causes a change to the preview window. Call

 

 

the Visual Basic function, DoEvents (see Visual Basic

 

 

documentation for more information) before requesting the

 

 

records printed.

 

 

 

 

RecordsRead

Returns the number of records actually processed.

Read only

 

 

 

RecordsSelected

Returns the number of records selected for inclusion in the

Read only

 

report out of the total number of records read.

 

 

 

 

Report

Reference to Report Object (page 349).

Read only

 

 

 

StartPageNumber

Returns the number of the starting page of preview or

Read only

 

printing.

 

PrintWindowOptions Object

The PrintWindowOptions Object provides properties for retrieving information and setting options for the print window (that is, available buttons, Group Tree, etc.). Many of the properties in this object must be set prior to enabling other events. For example, before enabling the CancelButtonClicked, Page 381, event from the Window Object, you must first set the HasCancelButton property from this object to TRUE. A PrintWindowOptions Object is obtained from the PrintWindowOptions property of the Report Object, Page 349.

Crystal Report Engine Object Model for the Automation Server

347

PrintWindowOptions Object Properties

Property

Description

Read/Write

 

 

 

 

 

 

Application

Returns a reference to the Application Object (page 290), that

Read only

 

this object is associated with.

 

 

 

 

CanDrillDown

Returns/Sets Boolean value indicating whether you can drill

Read/Write

 

down on previewed report.

 

HasCancelButton

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has a Cancel button.

 

 

 

 

HasCloseButton

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has a Close button.

 

HasExportButton

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has an Export button.

 

 

 

 

HasGroupTree

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window includes the Group Tree. You must also set the

 

 

HasGroupTree property to TRUE in the ReportOptions

 

 

Object (page 358), to have the Group Tree show in the

 

 

preview window.

 

 

 

 

HasNavigationControls

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has navigation controls for moving through report

 

 

pages.

 

 

 

 

HasPrintButton

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has a Print button.

 

HasPrintSetupButton

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has a Print Setup button.

 

 

 

 

HasProgressControls

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has progress controls.

 

HasRefreshButton

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has a Refresh button.

 

 

 

 

HasSearchButton

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has a Search button.

 

 

 

 

HasZoomControl

Returns/Sets Boolean value indicating whether the preview

Read/Write

 

window has zoom controls for changing the magnification of

 

 

the report.

 

 

 

 

Parent

Reference to the Parent object (Report Object (page 349)).

Read only

 

 

 

Report

Reference to Report Object (page 349).

Read only

TrackCursorInfo

Returns TrackCursorInfo Object (page 373).

Read only

 

 

 

Crystal Report Engine Object Model for the Automation Server

348

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