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

Availability

Design Time; Runtime

Related Report Engine Functions

PESetWindowOptions, Volume 2, Chapter 1

WindowState

WindowState specifies the state of the preview window (normal, minimized, or maximized) when the report is printed.

Syntax

[form.]Report.WindowState[= State%]

For example:

CrystalReport1.WindowState= 2

«When the report is printed to a preview window, the preview window appears maximized when opened.»

Remarks

Use the following values to set the WindowState property:

0 = Normal

The preview window appears neither minimized nor maximized. It appears in a default size and position previously defined by your application or by Windows.

1 = Minimized

The preview window appears minimized as an icon close to the lower left hand corner of the screen. The icon can be restored to display the window in a normal state.

2 = Maximized

The preview window is maximized when opened to fill the entire screen.

Data Type

Integer

Availability

Design Time; Runtime

Crystal ActiveX Control Reference

263

Related Report Engine Functions

PEOutputToWindow, Volume 2, Chapter 1

WindowTitle

WindowTitle specifies the title that you want to appear in the preview window title bar when the report is printed to a window.

Syntax

[form.]Report.WindowTitle[= Title$]

For example:

CrystalReport1.WindowTitle = “Quarterly Earnings”

«Sets the title of the preview window (the string that appears on the title bar) to “Quarterly Earnings”.»

Remarks

Make sure that the title is enclosed in quotes.

Select a value here only if you are printing to a window, if Destination, Page 183, = 0.

Data Type

String

Availability

Design Time; Runtime

Related Report Engine Functions

PEOutputToWindow, Volume 2, Chapter 1

WindowTop

WindowTop specifies the distance, in pixels, that the preview window is to appear from the top edge of the parent window. If the preview window is a top level window, then the distance is measured from the top edge of the screen.

Syntax

[form.]Report.WindowTop[= Distance%]

Crystal ActiveX Control Reference

264

For example:

CrystalReport1.WindowTop = 100

«Sets the top edge of the preview window 100 pixels from the top of the screen.»

Remarks

If you are not satisfied with the default setting, enter the number of pixels you want between the top of the screen and the top of your window.

Select a value here only if you are printing to a window, if Destination, Page 183, is set to 0.

Data Type

Integer

Availability

Design Time; Runtime

Related Report Engine Functions

PEOutputToWindow, Volume 2, Chapter 1

WindowWidth

WindowWidth specifies the width of the preview window in pixels.

Syntax

[form.]Report.WindowWidth[= Width%]

For example:

CrystalReport1.WindowWidth = 480

«Specifies a preview window 480 pixels wide.»

Remarks

If you are not satisfied with the default setting, enter the external width of your window, in pixels.

Select a value here only if you are printing to a window, if Destination, Page 183, is set to 0.

Data Type

Integer

Crystal ActiveX Control Reference

265

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