Desktop User Guides > Professional > Table scripting > Exporting tables > HTML tables export > HTML tables export - interactive mode
 
HTML tables export - interactive mode
Sample script file: HTMLExportOptions.mrs
This example script is based on the Museum sample data set. See Running the sample table scripts for information on running the example scripts.
You use interactive mode when you want to get feedback during the export. For example, when you use the interactive mode, a message appears if the output file already exists. The following table summarizes the main differences between exporting tables to HTML with and without interactive mode enabled.
Situation
Interactive mode enabled
Interactive mode disabled
File of same name already exists
The user is presented with a Yes/No message box that requests permission to overwrite the file.
If the OverwriteOutput export property is set to True, the file is overwritten, otherwise the export fails.
Overwrite of output file fails
The user is alerted with an OK message box, and then the export fails.
The export fails.
One or more invalid export properties have been specified
The user is alerted with an OK message box containing a list of the invalid properties. The valid properties are accepted.
Invalid properties are ignored and any valid properties are accepted.
Style sheet already exists in output location
The existing style sheet is used instead of the built-in style sheet.
The existing style sheet is used instead of the built-in style sheet.
The logo file already exists in output location
The existing logo is used instead of the built-in logo.
The existing logo is used instead of the built-in logo.
Charts have been requested but the Microsoft Office Web components are not available
The user is alerted with an OK box. If the export includes tables, these are exported. The charts are not exported.
If the export includes tables, these will be exported. The charts are not exported.
Example
You select interactive mode by setting the Interactive export property to True:
TableDoc.Exports.mrHtmlExport.Properties["Interactive"] = True
See also
HTML tables export