Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Send powershell generated html files to a printer via a scheduled task running in a non-interactive session

$
0
0

How can I script the printing of a powershell html report I have generated?

The needs to be run on a box as a scheduled task.

This was more difficult than I thought it would be as I found automating office can't really be done server side as the com objects can only be used in an interactive session.

I also cannot script opening IE and printing the report from there because the formatting was wrong (report got cut off). Also I am not sure this would work running as a task in a non-interactive session.

I tried messing with itextsharp, but this requires more programming knowledge than I have.

I also tried wkhtmltopdf, but the resulting report was hideous.

 

Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>