DocumentType

Top  Previous  Next

Indicates the document type that the script is running.

 

Values:

dtNone - indicates that the script does not generate any files

dtHtml - indicates that the script is to generate HTML pages

dtChm - indicates that the script is to generate a compiled HTML file

 

Description:

This property is usually used in shared scripts i.e. scripts that can generate both HTML pages and compiled HTML files.  By determining the document type, the script can set the necessary values and call the appropriate functions and methods.  E.g.

 

scripting_docsettings_documenttype

 

Use the dtNone type when testing scripts in the script editor.  When that value is used, the script editor will not open any file after running the script.  See Debugging for further details.