Contents Up Previous Next

DDE commands

A Windows program can hold a conversation with Tex2RTF using DDE. The Tex2RTF server name is "TEX2RTF'', and the topic name to use is also "TEX2RTF''.

Tex2RTF functionality is accessed using the DDE Execute message. The Execute data should consist of a command name and possibly one argument, e.g.

    INPUT c:\docs\mine.tex
If the command is not recognised, a standard TEX2RTF.INI option is assumed.

The Request DDE message can be used to query the return status of an Execute command, and will be one of OK (no error), CONVERSION ERROR, or a more specific error string.

The following DDE commands may be used:

EXIT Takes no argument, and exits Tex2RTF.
GO Takes no argument, and initiates the conversion.
INPUT Takes a file name as the argument, and sets the input file to be this name.
MINIMIZE Takes no argument, and minimizes Tex2RTF.
OUTPUT Takes a file name as the argument, and sets the input file to be this name.
RESTORE The same as SHOW.
SHOW Takes no argument, and unminimizes Tex2RTF.