Professional > Table scripting > Exporting tables > Microsoft Word tables export > Formatting the output in Microsoft Word > Changing the Microsoft Word export orientation to landscape
 
Changing the Microsoft Word export orientation to landscape
The default Microsoft Word export template uses Portrait orientation. You can change this to Landscape in an individual Word document, or you can create your own custom template by editing the default template.
Creating a custom Word template with landscape orientation
1 Export an example table to Word, specifying an output file name and folder in the Export File Name field in the Microsoft Word Exports dialog box.
2 When the export is complete you will see in the output folder, in addition to the exported Word document, a template file called WordTemplate.dot.
3 Open Word, then open WordTemplate.dot (do not open the .dot file by double-clicking on it as this would create a new document).
4 From the File menu in Word, choose Page Setup, then select Landscape in the Orientation section of the Page Setup dialog and click OK.
5 You may also want to make other changes to the template, for example to resize or reposition the logo.
XXXSaving and using the template
1 Save and close WordTemplate.dot. You can save this template in any folder (if you export to a folder and UNICOM Intelligence Professional finds an existing WordTemplate.dot in the folder, it does not overwrite it, so your changes are not lost) but you may want to save it to the folder where all your other Word templates are stored, and give it a new name. If you rename the template and/or save it to a folder other than the output folder, you must explicitly select the template when you run the export.
2 Using UNICOM Intelligence Professional, run the export again, using the TemplateFileName property of the Export object to specify the path and filename of the amended Word template. selecting the amended Word template in the Apply Word Template field of the Export dialog box.
See also
Formatting the output in Microsoft Word