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

Parameters

Parameter

Description

 

 

 

 

oldViewIndex

An index referring to the view the user switched from.

newViewIndex

An index referring to the view the user switched to.

 

 

ZoomLevelChanged Event

The ZoomLevelChanging event occurs when the zoom level of the Smart Viewer is changed.

Syntax

Event ZoomLevelChanged(ZoomLevel As Integer)

Parameter

Parameter Description

ZoomLevel

A value indicating the new zoom level percentage.

CRVTrackCursorInfo Object

The CRVTrackCursorInfo Object contains information about the types of mouse cursors displayed while the user interacts with the report in the Smart Viewer. This object corresponds to the TrackCursorInfo property in the CRViewer Object (page 143).

CRVTrackCursorInfo Object Properties

Property

Description

Read/Write

 

 

 

 

 

 

DetailAreaCursor

Returns or sets the DetailAreaCursor type.

Read/Write

DetailAreaFieldCursor

Returns or sets the DetailAreaFieldCursor type.

Read/Write

GraphCursor

Returns or sets the GraphCursor type.

Read/Write

 

 

 

GroupAreaCursor

Returns or sets the GroupAreaCursor type.

Read/Write

 

 

 

GroupAreaFieldCursor

Returns or sets the GroupAreaFieldCursor type.

Read/Write

 

 

 

Constant

Value

 

 

 

 

crAppStartingCursor

12

 

 

crArrowCursor

1

crCrossCursor

2

 

 

Smart Viewer Object Models

164

Constant

Value

crDefaultCursor 0

crHelpCursor 13

crIBeamCursor 3

crMagnifyCursor 99

crNoCursor 10

crWaitCursor 11

The Crystal Smart Viewer/Java Bean Technical

Reference

The following Properties, Methods, and Events are discussed in this section.

The Crystal Smart Viewer/Java Bean Properties, Page 165

The Crystal Smart Viewer/Java Bean Methods, Page 168

¾closeCurrentView, Page 168

¾exportView, Page 168

¾printView, Page 169

¾refreshReport, Page 169

¾searchForText, Page 169

¾showLastPage, Page 169

¾showPage, Page 170

¾stopAllCommands, Page 170

The Crystal Smart Viewer/Java Bean Events, Page 170

¾ServerRequestEvent, Page 170

¾ServerRequestEvent, Page 170

The Crystal Smart Viewer/Java Bean Properties

The Smart Viewer Bean properties may have one or more of the characteristics listed below:

read: you can get the current value.

write: you can set the value.

bound: you can get a notification every time the value changes.

constrained: you can veto a request to change the value.

Smart Viewer Object Models

165

 

 

Read(r), Write(w),

Property

Description

Bound(b),

 

 

Constrained(c)

 

 

 

 

 

 

busy

Boolean. True if the ReportViewer is currently

r, b

 

processing a command initiated by user action, method

 

 

call, or property change.

 

 

 

 

canCloseCurrentView

Boolean. True if the current views tab can be closed. The

r,b

 

initial ("Preview") tab cannot be closed. Refer to method

 

 

closeCurrentView.

 

 

 

 

canDrillDown

Boolean. True if drill-down views can be opened.

r,w,b,c

 

Normally, clicking on a hidden group in the group tree

 

 

(indicated by a magnifying glass icon next to the group

 

 

name) or double-clicking on a chart or map or group

 

 

section in the page will open a drill-down view.

 

 

 

 

currentMessage

string. The message currently displayed in the status

r,b

 

area of the toolbar.

 

 

 

 

currentPageNumber

int. The number of the page currently being viewed.

r,b

 

 

 

currentTip

string. The "tool tip" currently displayed in the status

r,b

 

area of the toolbar. Tool tips temporarily override any

 

 

message in the status area.

 

 

 

 

currentViewName

string. The name of the view whose tab is selected.

r,b

 

 

 

exportingPossible

Boolean. False if exporting is not possible because the

r

 

user has denied the bean permission to write to the local

 

 

disk.

 

 

 

 

hasExportButton

Boolean. True if the Export button can be made visible

r,w,b,c

 

in the toolbar. If exporting is not possible (refer to

 

 

property exportingPossible ), requests to set this property

 

 

to true will be vetoed.

 

 

 

 

hasGroupTree

Boolean. If set to True then the GroupTree toggle button

r,w,b,c

 

is made visible in the toolbar and the GroupTree can be

 

 

displayed (refer to property showGroupTree).

 

 

 

 

hasPrintButton

Boolean. If True then the Print button will be visible in

r,w,b,c

 

the toolbar. If printing is not possible (refer to property

 

 

printingPossible) then requests to set this property to

 

 

True will be vetoed.

 

 

 

 

hasRefreshButton

Boolean. If True then the Refresh button is visible in the

r,w,b,c

 

toolbar.

 

 

 

 

hasToolBar

Boolean. If True then the toolbar is visible.

r,w,b,c

hasTextSearchControls

Boolean. If true then the Text Search field and the Find

r,w,b,c

 

Next button are visible in the toolbar.

 

 

 

 

Smart Viewer Object Models

166

 

 

 

 

Read(r), Write(w),

Property

Description

 

 

Bound(b),

 

 

 

 

Constrained(c)

 

 

 

 

 

 

language

string. Contains the 2 letter international Standard code

r,w,b,c

 

for the language to be used for the user interface.

 

 

Languages currently supported are:

 

 

English

--

en

 

 

French

--

fr

 

 

German

--

de

 

 

Japanese

--

ja

 

 

Italian

--

it

 

 

Spanish

--

es

 

 

Portuguese --

pt

 

lastPageNumber

int. Indicates to the highest numbered page currently

r,b

 

available in the report. This may or may not be the final

 

 

page. (refer to property lastPageNumberKnown).

 

 

 

 

lastPageNumberKnown

Boolean. True if the number of the final page in the

r,b

 

report is known. If False then there are more pages in

 

 

the report than the lastPageNumber property indicates.

 

 

 

 

printingPossible

Boolean. True if printing is possible. If False then either

r

 

the Java implementation doesn’t support it or the user

 

 

has denied the bean permission to print.

 

reportName

string. The URL of the report to be viewed. For example:

r,w,b,c

 

http://server_name/report_dir/report.rpt

 

 

Setting this property causes the ReportViewer to request

 

 

page 1 of the report from the server.

 

searchText

string. Contains the text most recently searched for, or

r,b

 

the text being typed by the user int to the Text Search

 

 

field in the toolbar.

 

 

 

 

 

 

selectionFormula

string. The current selection formula to be used for

r,w,b,c

 

subsequent commands. The formula is expressed in the

 

 

Crystal Reports formula language. Setting this property

 

 

closes all views except the initial one (the "Preview"

 

 

view), discards all information cached for the report,

 

 

and re-requests the current page of the report.

 

 

 

 

showGroupTree

Boolean. If True and the hasGroupTree property is True

r,w,b,c

 

then the GroupTree will be visible.

 

 

 

 

 

 

Smart Viewer Object Models

167

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