in reply to Print a text file to a Windows network printer in a landscape orientation.
Disclaimer: Untested code and I'm currently in the process of trying to figure this thing out myself, but that should work above.use Win32::Printer; my $dc = new Win32::Printer( printer => '\\\\hardcopy\\ApDev', orientation => LANDSCAPE ); my $filename = 'test.txt'; my $image_handle = $dc->Image($filename); $dc->Image($image_handle); $dc->End(); $dc->Close();
|
|---|