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

PageCount

PageCount returns the number of pages in the report.

Syntax

[form.]Report.PageCount

For example:

NumberofPages = CrystalReport1.PageCount

«Returns 100 if the number of pages in the specified report is 100.»

Remarks

PageCount must be called after the Action, Page 178, to get a valid page count.

PageFirst

PageFirst displays the first page of the report in the preview window.

Syntax

[form.]Report.PageFirst

For example:

CrystalReport1.PageFirst

«Displays the first page of the report to the preview window.»

Remarks

This method is only valid when the report is printed to a preview window.

This method must be called after the Action, Page 178.

PageLast

PageLast displays the last page of the report in the preview window.

Syntax

[form.]Report.PageLast

For example:

CrystalReport1.PageLast

«Displays the last page of the report in the preview window.»

Crystal ActiveX Control Reference

270

Remarks

This method is only valid when the report is printed to a preview window.

This method must be called after the Action, Page 178.

PageNext

PageNext displays the next page of the report in the preview window.

Syntax

[form.]Report.PageNext

For example:

CrystalReport1.PageNext

«Displays the next page of the report in the preview window.»

Remarks

This method is only valid when the report is printed to a preview window.

This method must be called after the Action, Page 178.

PagePrevious

PagePrevious displays the previous page of the report in the preview window.

Syntax

[form.]Report.PagePrevious

For example:

CrystalReport1.PagePrevious

«Displays the previous page of your report in the preview window.»

Remarks

This method is only valid when the report is printed to a preview window.

This method must be called after the Action, Page 178.

Crystal ActiveX Control Reference

271

PageShow

PageShow displays a specific page of the report in the preview window.

Syntax

[form.]Report.PageShow [(PageToShow%)]

For example:

CrystalReport1.PageShow (3)

«Shows the third page of the report.»

Remarks

This method is only valid when the report is printed to a preview window.

This method must be called after the Action, Page 178.

PageZoom

PageZoom sets the magnification factor for the report in the preview window to a value from 25% to 400% of the actual size.

Syntax

[form.]Report.PageZoom [(PercentZoomLevel%)]

For example:

CrystalReport1.PageZoom (150)

«Sets the magnification/zoom level to 150% for the current.»

Remarks

This method is only valid when the report is printed to a preview window.

This method must be called after the Action, Page 178.

Crystal ActiveX Control Reference

272

PageZoomNext

PageZoomNext zooms the magnification level of the report in a preview window to the next default zoom level.

Syntax

[form.]Report.PageZoomNext

For example:

CrystalReport1.PageZoomNext

«Sets the magnification/zoom level to the next default level.»

Remarks

This method is only valid when the report is printed to a preview window.

This method must be called after the Action, Page 178.

Default zoom levels are Full Page, Fit One Side, and Fit Both Sides. These levels correspond to the levels available by clicking the Zoom button on the Seagate Crystal Reports toolbar.

PrinterSelect

PrinterSelect displays the Printer Selection common dialog box which enables the user to specify a different printer.

Syntax

[form.]Report.PrinterSelect

For example:

CrystalReport1.PrinterSelect

«When the user prints, a dialog box appears for selecting the desired printed for printing the report.»

Remarks

This method allows you to pick the printer used for printing the report.

This method is intended primarily for printing reports to a printer. However, changes made to the Print Setup dialog box may also affect how reports appear in preview windows and when exported.

Crystal ActiveX Control Reference

273

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