| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > Crystal Reports Templates >====== Crystal Reports Code Templates ====== | [[additional libraries and templates.htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[crystal8 class.htm|{{btn_next_n.gif|Next page}}]] | | || **Code templates generate source code into an embed point that you specify and sometimes direct source generation into other embed points as well. Their purpose is to make procedure customization quick and easy. Each Crystal Report Code template provides a well-defined task. For example, the PreviewCrystalReport template simply provides a way ****for previewing and printing of predefined Crystal Reports.**** Typically, a Code template provides a dialog box with prompts and instructions.** **PreviewCrystalReport** **PrintCrystalReport** **GetCrystalFormulaPreview** **GetCrystalFormulaPrint** **GetCrystalQueryPreview** **GetCrystalQueryPrint** **SetCrystalFormulaPreview** **SetCrystalFormulaPrint** **SetCrystalQueryPreview** **SetCrystalQueryPrint**