http://www.perlmonks.org?node_id=235882


in reply to Printing from Perl in Windows

just some (untested) brainstormed ideas:
- you can still open printers in windows through open(PRN, ">LPT1") or open(PRN, '>\\printserver\printershare') (watch out for the single-quotes to avoid interpolation of the backslashes), and IMHO perl's formating abilities are quite fun to use - so if you don't NEED any special formatting (bold, etc) that option is still open.
you may want to look at Tk::Canvas' postscript() function. I've never used it, but it's supposed to generate postscript that you could (some way or another) send to your printer, convert to .pdf, etc.
another (weird) option would be to genrate HTML, pipe that to html2ps, or let a browser print it - even though printer-formating via CSS is still in its infancy.
i've never done Word-automation, but i think it's quite hard, and not worth the extra effort just to get that special word bold.
another fun option would be to create an Excel .xls file using Spreadsheet::WriteExcel formatting capabilities, and then tell Excel to print it via Win32::OLE .
hope these thoughts help you find a better way,

-schweini