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

Property

Description

Read/Write

Restriction in event handler

 

 

 

 

 

 

 

 

XScaling

Returns or sets width scaling

Read/Write

Can be written only when

 

factor. For example, 1 means

 

formatting idle.

 

100%, 2 means 200%, 0.5 means

 

 

 

50% etc. The scaling factor may

 

 

 

range from 0.1 to 100.

 

 

 

 

 

 

YScaling

Returns or sets height scaling

Read/Write

Can be written only when

 

factor. For example, 1 means

 

formatting idle.

 

100%, 2 means 200%, 0.5 means

 

 

 

50% etc. The scaling factor may

 

 

 

range from 0.1 to 100.

 

 

Page Object

The Page Object is part of the Page Engine. Use the Page Engine when designing web sites using Active Server Pages, the Crystal Report Engine Automation Server, and the Crystal Design-Time ActiveX Control. Unless you are experienced with the Crystal Report Engine Object Library, you should allow the Crystal Design-Time ActiveX Control to generate VBScript code in your Active Server Pages that controls the Page Engine objects.

The Page Engine generates pages of a report on the web server and sends the pages to client web browsers as they are requested. For example, when a user first requests a report, only the first page is sent to the web browser. If the user pages forward or backward in the report, or requests a specific page, only that page is sent. This limits the resources required by the web server and reduces download time for the client browser. A Page Object is a single generated page that is sent to the browser.

Page Object Properties

Property

Description

Read/Write

Restriction in

event handler

 

 

 

 

 

 

 

 

 

 

 

IsLastPage

Returns Boolean value indicating whether the

Read only

Can be written only

 

page generated is the last page of the report.

 

when formatting idle.

 

 

 

 

PageNumber

Returns the page number of the page

Read only

None

 

generated.

 

 

 

 

 

 

Parent

Reference to the Parent object

Read only

None

 

(PageGenerator Object (page 77)).

 

 

 

 

 

 

Page Object Methods

RenderEPF Method (Page Object), Page 73

RenderHTML Method (Page Object), Page 73

Report Designer Component Object Model

72

RenderEPF Method (Page Object)

The RenderEPF method returns a variant that contains EPF code for the report page. This method can be invoked only when in formatting idle mode.

Syntax

variantdata = object.RenderEPF (ResultType as CRRenderResultType)

Parameters

Parameter

Description

 

 

 

 

 

 

 

ResultType

Returns CRRenderResultType (see table below) indicating whether the page will be

 

rendered using strings or arrays.

 

 

 

 

 

 

 

Constant

Value

 

 

 

 

 

 

 

crBSTRType

8

 

 

 

 

crUISafeArrayType

8209

 

 

 

RenderHTML Method (Page Object)

The RenderHTML method returns a variant that contains HTML code for the report page. This method can be invoked only when in formatting idle mode.

Syntax

variantdata = object.RenderHTML (IncludeDrillDownLinks as Boolean, PageStyle as CRHTMLPageStyle, ToolbarStyle as CRHTMLToolbarStyle, BaseURL as string, ResultType as CRRenderResultType)

Parameters

Parameter

Description

 

 

 

 

IncludeDrillDown

Indicates whether or not the HTML page will include hyperlinks for drilling-down

Links

on summary data.

 

 

PageStyle

Specifies CRHTMLPageStyle (see table below) indicating the style of the HTML

 

page to be rendered.

Report Designer Component Object Model

73

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