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

begin

Visible := True; AllowDrillDown := True; CancelBtn := False;

end; Crpe1.Execute;

WindowButtonBar CancelBtn property

Declaration

property CancelBtn: Boolean;

Description

CancelBtn determines if the Cancel Button will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher.

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Cancel button is hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; CancelBtn := False;

end; Crpe1.Execute;

WindowButtonBar CloseBtn property

Declaration

property CloseBtn: Boolean;

Description

CloseBtn determines if the Close Button will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher.

VCL Reference

686

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Close button is hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; CloseBtn := False;

end; Crpe1.Execute;

WindowButtonBar ExportBtn property

Declaration

property ExportBtn: Boolean;

Description

ExportBtn determines if the Export Button will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher.

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Export button is hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; ExportBtn := False;

end; Crpe1.Execute;

VCL Reference

687

WindowButtonBar GroupTree property

Declaration

property GroupTree: Boolean;

Description

GroupTree determines if the Group Tree will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher. If the Report has been saved with the Group Tree option turned off, it must first be activated using the ReportOptions.CreateGroupTree property (ReportOptions are only available in SCR 7).

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Group Tree is visible:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; GroupTree := True;

end; Crpe1.Execute;

WindowButtonBar NavigationCtls property

Declaration

property NavigationCtls: Boolean;

Description

NavigationCtls determines if the Navigation Controls will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher. Navigation Controls are the paging buttons. The action of these buttons can also be simulated with the Pages object.

VCL Reference

688

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Navigation Controls are hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; NavigationCtls := False;

end; Crpe1.Execute;

WindowButtonBar PrintBtn property

Declaration

property PrintBtn: boolean;

Description

PrintBtn determines if the Print Button will appear on the Preview Window or not. This only applies to Crystal 6.0 or higher.

Example

This code example sets the WindowButtonBar properties so that Drill-Down is possible, and the Print Button is hidden:

Crpe1.ReportName := 'MyReport.rpt'; Crpe1.Output := toWindow;

with Crpe1.WindowButtonBar do begin

Visible := True; AllowDrillDown := True; PrintBtn := False;

end; Crpe1.Execute;

VCL Reference

689

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