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

Data Type

Integer

Availability

Design Time; Runtime

Related Report Engine Functions

PEOutputToWindow, Volume 2, Chapter 1

WindowControls

WindowControls indicates whether or not the print controls are to appear in the preview window when printing a report to a window.

Syntax

[form.]Report.WindowControls[={True|False}]

For example:

CrystalReport1.WindowControls = True

«Specifies that print controls are to appear in the preview window.»

Remarks

●Select True if you want the print controls to appear in the preview 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

PEShowPrintControls, Volume 2, Chapter 1

Crystal ActiveX Control Reference

251

WindowHeight

WindowHeight specifies the height of the preview window when the report is printed to a window.

Syntax

[form.]Report.WindowHeight[= Height%]

For example;

CrystalReport1.WindowHeight = 300

«Sets the height of the preview window to 300 pixels.»

Remarks

●If you are not satisfied with the default settings, enter the external height you want for your preview window in pixels. (A standard VGA monitor is 640 x 480 pixels.)

●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

WindowLeft

WindowLeft specifies the distance, in pixels, that the preview window is to appear from the left edge of the parent window. If the preview window is a top level window, then the distance is measured from the left edge of the screen. (A standard VGA monitor is 640 x 480 pixels).

Syntax

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

For example:

CrystalReport1.WindowLeft = 100

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

Crystal ActiveX Control Reference

252

Remarks

●If you are not satisfied with the default settings, enter the number of pixels you want between the left edge of the screen and the left edge 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

WindowMaxButton

WindowMaxButton indicates whether or not the preview window is to have an active, hidden, or grayed-out maximize button when the report is printed to a window.

Syntax

[form.]Report.WindowMaxButton[= {True|False}]

For example:

CrystalReport1.WindowMaxButton = False

«Specifies that no Maximize button is to appear in the preview window (in Windows 95, NT4+). Specifies that the Maximize button will appear grayed out in the preview window (in Windows 3.x)»

Remarks

●Select True if you want the window to contain a maximize button. Select False if you do not.

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

●If you set both WindowMaxButton and WindowMinButton, Page 254, to False, the buttons will not appear at all (be hidden).

●If you set one of WindowMaxButton or WindowMinButton to True, the other button will appear grayed out.

Data Type

Integer

Crystal ActiveX Control Reference

253

Availability

Design Time; Runtime

Related Report Engine Functions

PEOutputToWindow, Volume 2, Chapter 1

WindowMinButton

WindowMinButton indicates whether or not the preview window is to have an active, hidden, or grayed-out minimize button when the report is printed to a window.

Syntax

[form.]Report.WindowMinButton[= {True|False}]

For example:

CrystalReport1.WindowMinButton = True

«Specifies that a Minimize button is to appear in the preview window (in Windows 95, NT4+). Specifies that the Minimize button will be active (no grayed out) in the preview window (in Windows 3.x).»

Remarks

●Select True if you want the window to contain a minimize button. Select False if you do not.

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

●If you set both WindowMaxButton, Page 253, and WindowMinButton to False, the buttons will not appear at all (be hidden).

●If you set one of WindowMaxButton or WindowMinButton to True, the other button will appear grayed out.

Data Type

Integer

Availability

Design Time; Runtime

Related Report Engine Functions

PEOutputToWindow, Volume 2, Chapter 1

Crystal ActiveX Control Reference

254

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