Preview Method (Report Object)

Sample Code - Preview Method

The Preview method reviews the report and returns the View Object.

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.

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.

Parent Window
(Optional)

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

Returns

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



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com