| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > Crystal8 Class >====== HasCancelButton (display cancel button on report preview) ====== | [[candrilldown allow crystal drill down support .htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[hasclosebutton display close button on report preview .htm|{{btn_next_n.gif|Next page}}]] | | || **HasCancelButton** (| //hascancelbutton// |) **HasCancelButton**** Allow a cancel button on the report preview window.** //hascancelbutton// An integer constant, variable, EQUATE, or expression that specifies whether a cancel button will appear on the report's preview window. A value of one (1) displays the cancel button; a value of zero (0) does not display the cancel button. The HasCancelButton method is used to optionally display a cancel button on the report preview window. This method returns a BYTE representing the value of //hascancelbutton//. **Return Data Type:** BYTE **Example:** **oCrystal8.HasCancelButton(1)**