User Tools

Site Tools


savertffile_code_template.htm
Navigation:  Templates > Guide to all Templates > Additional Libraries and Templates > Rich Text Template Support - Overview >====== SaveRTFFile code template ====== Previous pageReturn to chapter overviewNext page

NoteBox.jpg

This template (and its associated code templates) has been deprecated, and is now replaced by the RTF Text Control template.

The SaveRTFFile code template is used to save rich text data to a file. This template calls the SaveFile 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 save time or no filename parameter is specified, the Save As file dialog is opened.

Prototype:

SaveFile( FileName )

Example method calls:

oRTF_RTFTextBox.SaveFile( loc:Filename )

oRTF_RTFTextBox.SaveFile( '0101SS.RTF' )

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 save the rich text data to. A string or variable may be used. To use a variable, precede it with an exclamation point (!). If left blank, the Save As file dialog is opened.

savertffile_code_template.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1