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

5

u/Pervy_Uncle Jun 24 '18

This has so many great ways it can be used. Is the ability to use macros also included? Is that even possible?

8

u/MadBoyEvo Jun 24 '18

It's not supported. And i don't think it's that needed. Considering you can prepare data in PowerShell and just insert to Word. There is also pay version of the .dll from Xceed and it has few other features such as pdf conversion. But since this one most likely never gets into free edition I didn't even bother.

My plan is to actually create AD/Exchange documentation for my environments. I thought that I would write a script that would do it for me. Hard part is almost done :) I am too lazy to write docs so need to write a script to write it for me ;-)

8

u/River_Fennel Jun 24 '18

If not for laziness, we'd keep working hard instead of smart... :)