|We don't bite newbies here... much|
Print a text file to a Windows network printer in a landscape orientation.by iskinner (Novice)
|on Apr 04, 2008 at 21:28 UTC||Need Help??|
iskinner has asked for the
wisdom of the Perl Monks concerning the following question:
I believe I am nearing the end of month long porting of a rather extensive, 1500 line, 15 year old Perl application that used to run on one of our old Solaris Unix boxes to running on our new Windows 2003 box.
I believe the last obstacle to over come is to print a text file to a network printer in a landscape orientation.
After much searching I have found the Win32::Printer and Win32::Printer::Direct modules. But I'm not sure how to make use of them to achieve my goal.
Creating an instance of Win32::Printer, I can supposedly tell it to print in landscape.
With Win32::Printer::Direct, I can easily print the text file.
How the halibut can I combine these features? Assuredly there has got to be a way, but what it is I can not fathom.
My experience with Perl is a bit stale dating from the late 90's. And then I was just a novice making simple modifications to canned CGI scripts that sent e-mails from form submits. I do not think I understand modules well enough to know how to get the more specific 'Direct' module to use features of the more general 'Printer'? I don't even understand enough to know if that is a sensible question to ask.