Tag archive for » Office 2007 «

Small PowerShell function library for Word2007

Thursday, 6. August 2009 20:59

I created a small library of functions for creating word documents using PowerShell. The library contains 8 functions that allow you to create simple documents in Word2007 (maybe also Word 2003 but I haven’t been able to test it yet).

The functions are:

  1. WORD\Invoke-Word
  2. WORD\Add-Heading
  3. WORD\Add-Paragraph
  4. WORD\Add-Table
  5. WORD\Add-TableOfContents
  6. WORD\Add-PageBreak
  7. WORD\Add-TextBox
  8. WORD\Update-TablesOfContents

A small example script is included in the zip file which can be downloaded here.

A screenshot of one of the chapter generated by the example script:

 

word

Category:Office 2007, PowerShell | Comment (0) | Autor: Dennis Damen