r/PowerShell • • Jun 24 '18

Script Sharing PSWriteWord - PowerShell Module to create Microsoft Word documents without Word installed...

I wanted to share something new with you today. PowerShell module called PSWriteWord. As the name suggest this little module is able to create Microsoft Word documents on the fly from PowerShell. The tricky part is ... it doesn't require Microsoft Word installed on the machine to work. As always source is available on GitHub, published as module to PowerShellGallery and for those that want to use it I've created about 20 examples showing different functionalities. It's still work in progress and probably will be for longer time as I've to find the best ways to utilize some features. I do hope for some decent feedback. Enjoy

Module page: https://evotec.xyz/hub/scripts/pswriteword-powershell-module/

GitHub: https://github.com/EvotecIT/PSWriteWord

152 Upvotes

40 comments sorted by

View all comments

Show parent comments

3

u/MadBoyEvo Jun 25 '18

Creating blogs, README takes much more time then just coding something and pushing to GitHub. Some of the stuff I do is ready much much sooner before I get time to write a blog about it. Keep in mind that I've not tested Add-WordTable much. Just on few outputs. If you have specific case and it doesn't work let me know what it is and i'll try to add it. I am not really sure how to process all kind of possible options people can throw at it. Also few of the examples are not supported by the release in PowershellGallery. I've to release new version. Added few small things today.

2

u/ApricotPenguin Jun 26 '18

That makes sense :)

I really should've checked the entire git project first, but didn't expect that for a Powershell module since it was in the gallery :)

I tried following the examples for the Table, but I can't get it to work by using a Dictionary/HashTable. Your examples work but I'm not sure what I'm doing wrong (I'm still learning Powershell as I go :))

I'll post a code snippet of what I did in about 30 mins.

2

u/MadBoyEvo Jun 26 '18

In Issues on github please. Need to track it there ;)

2

u/ApricotPenguin Jun 26 '18

Sounds good.

I'll most likely be entering it in tonight since I'm currently on my phone.