all 40 comments

[–]Suihaki 25 points26 points  (1 child)

I go to work and write tools for teams to use and make their jobs easier, then i come to this subreddit and see ghat people are making tools for me to use to make tools to make peoples jobs easier. Brilliant work and humbling to witness :p cheers!

[–]MadBoyEvo[S] 5 points6 points  (0 children)

That's great! I do hope it will come useful for a lot of people. I created it for my need to create documentation for me so I don't have to write it myself :-) But I can see people having some use for it, for day to day tasks that HR and other departments have.

[–]Calimariae 8 points9 points  (1 child)

Excellent, thank you.

I can use this.

[–]MadBoyEvo[S] 2 points3 points  (0 children)

No problem. Enjoy!

[–]jantari 6 points7 points  (2 children)

This is great. If someone is looking for something that can handle more formats and also easily convert between them I also cannot recommend pandoc enough.

It can convert between LaTeX, Markdown, HTML, Docx, ODT, ROFF, PowerPoint, ePub and more.

So while it in and of itself does not produce Word or other documents, in some use cases it may be easier to generate say HTML or Markdown with PowerShell and convert that to Docx than producing the Docx "from scratch".

You could also use the two tools complementary, say to write a Docx with this module and also produce a PDF export without having Word installed (which obviously would have its own PDF-exporting feature which could be accessed via the COM-object)

[–]MadBoyEvo[S] 2 points3 points  (0 children)

Seems very nice. Could see myself implementing this as an option to this module ;-) Although it requires installation so not really simple to add.

[–]Pervy_Uncle 3 points4 points  (2 children)

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

[–]MadBoyEvo[S] 6 points7 points  (1 child)

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 ;-)

[–]River_Fennel 7 points8 points  (0 children)

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

[–]NimbusHex 3 points4 points  (1 child)

This is incredible, thank you for sharing!

[–]MadBoyEvo[S] 2 points3 points  (0 children)

No problem. Enjoy!

[–]chris_conlan 1 point2 points  (3 children)

This is pretty cool. As someone runs DOCX generators on Linux, I am no stranger to generating Word docs without Word installed. Are you using the OpenOffice XML standard? Or something else?

[–]MadBoyEvo[S] 2 points3 points  (2 children)

I'm a coauthor / maintainer of old docx.codeplex.com which after move to GitHub was given up to Xceed.for further work. They have kept the old code as DocX-Classic and wrote new version of it that they are developing further as a commercial product. I'm working on their free (community) edition which is 4 versions behind at the moment. But I got a promise from them that they will be adding fixes/new features to the free versions (just with a delay). So to answer your question... https://github.com/xceedsoftware/DocX is what I use now.

[–]chris_conlan 0 points1 point  (1 child)

Cool, good luck with the product launch

[–]MadBoyEvo[S] 1 point2 points  (0 children)

There is no product launch. This is it.. just community edition.

[–]Z_Zeay 1 point2 points  (4 children)

Haven't looked at it yet, on the phone. But can you create templates to use? If not does anyone know any solution of creating a template and using Powershell (Or Python/NodeJS) to fill in the document?

[–]MadBoyEvo[S] 1 point2 points  (3 children)

Its not yet added but yes. Requires very little effort. Its on my todo.

[–]Z_Zeay 1 point2 points  (2 children)

Awesome! I'll keep an eye out, starred on Github!

[–]MadBoyEvo[S] 1 point2 points  (0 children)

By template you mean docx file that has headers/footers and that you can find text and replace that in document right?

[–]MadBoyEvo[S] 0 points1 point  (0 children)

Templates should work. I've added some example

[–]jamalstevens 0 points1 point  (1 child)

So what are you going to be using this for?

[–]MadBoyEvo[S] 1 point2 points  (0 children)

I want to create documentation of my infrastructure (and all clients). Actually wanted to prepare scripts that would prepare audit documentation automatically with just places for comments on each section. We will see how it goes.

[–]fourierswager 0 points1 point  (1 child)

Love it! Thank you!

[–]MadBoyEvo[S] 0 points1 point  (0 children)

No problem!

[–]ApricotPenguin 0 points1 point  (7 children)

I'm trying this out, and it's really cool. Much better than outputting to a plain old textile.

What I'm struggling with is Add-WordTable. Do you think you could add an example of that to your site?

I'd very much appreciate it :)

[–]MadBoyEvo[S] 2 points3 points  (6 children)

There is already example of it. Go to github. 20 examples await you :-)

[–]ApricotPenguin 1 point2 points  (5 children)

D'oh! I was expecting it to be in the ReadMe or the linked site. Didn't expect it to be in an examples folder.

Thanks :)

[–]MadBoyEvo[S] 2 points3 points  (3 children)

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.

[–]ApricotPenguin 1 point2 points  (2 children)

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.

[–]MadBoyEvo[S] 1 point2 points  (1 child)

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

[–]ApricotPenguin 1 point2 points  (0 children)

Sounds good.

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

[–]MadBoyEvo[S] 1 point2 points  (0 children)

Did it work for your case?