This script formats a Word document used to issue the week 2-4 strategic planning document (SPU). A standard set of images, headings and tables is added along with a contact section and disclaimers.
Requirements:
- Windows and Word: This script makes extensive use of the Word Object Model.
- A system capable of executing PowerShell scripts
- An internet connection
- Access to https://hpfx.science.gc.ca. This is only required for some of the images.
- Local Admin privileges are not required
Usage and output:
- Save the script locally
- Modify as required
- Execute the script either from a PowerShell window, or by double clicking/right-clicking + run
- The script will save the document to your local (not OneDrive) Documents directory. E.g.: c:\Users\JoeBlow\Documents\
- NRCan and likely most GC users will need to specify a classification before the script can complete its save.