| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > Crystal8 Class >====== Preview (preview a Crystal Report) ====== | [[kill shut down crystal8 object .htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[ print print a crystal report .htm|{{btn_next_n.gif|Next page}}]] | | || **Preview** (| //windowtitle//, //initstate//, //frame//, //icon//, //systemmenu//, //maximizebox//, //3dflag|//) ** ** **Preview**** Preview a Crystal Report.** //windowtitle// A string constant, variable, EQUATE, or expression containing the text to display in the report preview window's title bar. This parameter is optional. //initstate// A string constant, variable, EQUATE, or expression containing an **N**, **M**, or **I**. Use **N** (Normal) to display the preview window at the default size. Use **M** (Maximized) to display the preview window in a maximized state. Use **I** (Iconized) to display the preview window in an iconized state. This parameter is optional. //frame//  A string constant, variable, EQUATE, or expression containing an **S**, **D**, **R**, or **N**. Use **S** to give the preview window a single pixel frame. Use **D** to give the preview window a thick frame. Use **R** to give the preview window a thick but resizeable frame. Use **N** to give the preview window a single pixel frame. This parameter is optional. //icon//  A string constant, variable, EQUATE, or expression containing an icon filename. By specifiying an icon file, a minimize button is automatically placed on the preview window. This parameter is optional. //systemmenu// An integer constant, variable, EQUATE, or expression that specifies whether the preview window will contain a system menu. A value of TRUE will give the preview window a system menu. A value of FALSE (the default value) will not include the system menu on the preview window. This parameter is optional. //maximizebox// An integer constant, variable, EQUATE, or expression that specifies whether the preview window will contain a maximize button. A value of TRUE (the default value) will place the maximize button on the preview window. A value of FALSE will not include the maximize box on the preview window. This parameter is optional. //3dflag//  An integer constant, variable, EQUATE, or expression that specifies whether the preview window will have a 3D look. The 3D look provides the window with a gray backgound and chiseled control look. A value of TRUE (the default value) will provide the preview window with the 3D look. A value of FALSE will not provide the preview window with the 3d look. This parameter is optional. The Preview method is used to preview a Crystal report within a Clarion window. This method supports several preview window options. **Example:** **oCrystal8.Preview( 'My Report','I','R',,0,1,1 )**