| **Navigation:**  »No topics above this level«====== SetCrystalFormulaPreview ============ SetCrystalFormulaPrint ====== | {{btn_prev_d.gif}}[[coming future.htm|{{btn_home_n.gif|Return to chapter overview}}]]{{btn_next_d.gif}} | | || The **SetCrystalFormulaPreview **and **SetCrystalFormulaPrint **templates both accomplish the exact same task. They set the Formula that is used to limit retrieved records. The difference between these two templates is that **SetCrystalFormulaPreview **is used in conjunction with the **PreviewCrystalReport **template and **SetCrystalFormulaPrint **is used in conjunction with the **PrintCrystalReport **template. These templates call the Crystal8.SelectionFormula method. For more information on these methods refer to the //ABC Library Reference, Crystal8 class.// **Requirements** There templates require the **PreviewCrystalReport **or the **PrintCrystalReport **template respectively. **Populating the Template** 1. From an embed point,** **press** **the **Insert** button and select either the **SetCrystalFormulaPreview **or **SetCrystalFormulaPrint **template. **Template Prompts** These templates provides the following prompts: **Formula Variable** Specify a valid variable that holds the Formula to send to the report. This variable may be a STRING, CSTRING, PSTRING, or MEMO data type. The variable may be a local, module, or global variable. You may also use a file field. This variable is required.