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

Parameters

PromptUser (Optional) Specifies Boolean value indicating if user should be prompted for export options (if you don’t want to prompt). All necessary export options have to be set or prompt will be used whether this parameter is set to TRUE or FALSE.

OpenSubreport

Every subreport has a pointer to its parent report. Subreports hold on to their parent reports until they are destroyed. The OpenSubreport method opens a subreport contained in the report and returns a Report Object, Page 349, corresponding to the named subreport. It corresponds to PEOpenSubreport, Volume 2, Chapter 1, of the Crystal Report Engine.

Syntax

set reportvar = object.OpenSubreport (SubreportName)

Parameter

SubreportName

Specifies the file name of the subreport to be opened.

 

 

Returns

Report

Preview

The Preview method reviews the report and returns the View Object, Page 375.

Syntax

Set ViewVar = object.Preview (Title, Left, Top, Width, Height, Style, ParentWindow)

to capture the View object or,

object.Preview Title, Left, Top, Width, Height, Style, ParentWindow

for use without capturing the View object.

Crystal Report Engine Object Model for the Automation Server

353

Parameters

Title (Optional)

Specifies the string that contains the title that you want to appear on the title

 

bar if you are printing the report to a window.

Left (Optional)

Specifies the x coordinate of the upper left-hand corner of the print window, in

 

pixels.

 

 

Top (Optional)

Specifies the y coordinate of the top of the print window, in pixels.

 

 

Width (Optional)

Specifies the width of the print window, in pixels.

Height (Optional)

Specifies the height of the print window, in pixels.

 

 

Style (Optional)

Specifies the style of the window being created. Style settings can be combined

 

using the bitwise “OR” operator. Select a style from the list that appears with

 

PEOutputToWindow, Volume 2, Chapter 1.

Parent Window

Specifies the handle to the Parent Window if the print window is a child of that

(Optional)

window.

 

 

Returns

The View Object, Page 375, which represents the view created by previewing.

PrintOut

The PrintOut method prints out the specified pages of the report to the printer selected by using the SelectPrinter, Page 355, method. If no printer is selected, the default printer specified in the report will be used.

Syntax

object.PrintOut PromptUser, NumberOfCopies, Collated, StartPageNumber, StopPageNumber

Parameters

PromptUser (Optional)

Specifies Boolean value indicating if the user should be prompted for printer

 

options.

 

 

NumberOfCopies

Specifies the number of report copies that you want printed.

(Optional)

 

Collated (Optional)

Specifies Boolean value specifying whether or not you want the report copies

 

collated.

 

 

StartPageNumber

Specifies the first page that you want printed.

(Optional)

 

StopPageNumber

Specifies the last page that you want printed.

(Optional)

 

 

 

Crystal Report Engine Object Model for the Automation Server

354

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