| **Navigation:**  [[templates.htm|Templates]] > Guide to all Templates > [[additional libraries and templates.htm|Additional Libraries and Templates]] > Rich Text Template Support - Overview >====== LoadRTFFile code template ====== | [[loadrtffield code template.htm|{{btn_prev_n.gif|Previous page}}]][[additional libraries and templates.htm|{{btn_home_n.gif|Return to chapter overview}}]][[newrtffile code template.htm|{{btn_next_n.gif|Next page}}]] | | || {{notebox.jpg|NoteBox.jpg}} **This template (and its associated code templates) has been deprecated, and is now replaced by the [[tplcontrolrtf.htm|RTF Text Control]] template.** The LoadRTFFile code template is used to load a .RTF file into the rich text control. This template calls the LoadFile method. This method takes one parameter, the filename. The filename may be literal or variable. If a filename variable is used, but it contains no value at file load time or no filename parameter is specified, the Open file dialog is opened. ** Prototype:** **LoadFile( **//FileName //**)** **Example method calls:** **oRTF_RTFTextBox.LoadFile( loc:Filename ) !Load RTF file using variable** **oRTF_RTFTextBox.LoadFile( '0101SS.RTF' ) !Load RTF file** **Template Prompts:** **Associated RTF control** Select the RTF control from the drop-down list. All controls on the Window are included in the list. This field in required. **Filename or variable (prefixed with !)** Specify the file to load. A string or variable may be used. To use a variable, precede it with an exclamation point (!). If left blank, the Open file dialog is opened.