Professional > Table scripting > Exporting tables > Microsoft Word tables export > Microsoft Word tables export - interactive mode
 
Microsoft Word tables export - interactive mode
Sample script file: WordExport.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, you will see a message if the output file already exists. The following table summarizes the main differences between exporting tables to Microsoft Word 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 output file is overwritten, otherwise the export fails.
Overwrite of output file fails.
The user is presented with an OK box that explains that the output file cannot be overwritten and then the export fails.
The export fails.
Microsoft Office is not available
The user is presented with an OK box and 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.
Example
You select interactive mode by setting the Interactive export property to True:
TableDoc.Exports.mrWordExport.Properties["Interactive"] = True
Requirements
UNICOM Intelligence Reporter
Microsoft Office 2007 or later
See also
Microsoft Word tables export