InsertDocument

Description

Inserts a rich text format or plain text file into a RichTextEdit control, DataWindow control, or DataStore object.

Applies to

RichTextEdit controls, DataWindow controls, and DataStore objects

Syntax

rtename.InsertDocument ( filename, clearflag { , filetype } )

Returns

Integer. Returns 1 if it succeeds and -1 if an error occurs. If any argument’s value is null, InsertDocument returns null.