2009/2/22 Spencer Chase <spen...@spencerserolls.com>

>
> Greetings Jon et.al,
>
> I installed win32::printer using the graphical version of PPM. No
> problems installing but it looks like this module is way more than I
> need to just send plain text to a chosen printer, realtime. Any
> suggestions as to how to do this (maybe a sample script?) would be
> appreciated. I want to send simple ASCII text to a printer for which I
> have the control codes. I want to be able to immediately send each
> character and not deal with buffering or anything complex.
>
> Saturday, February 21, 2009, 8:50:51 AM, you wrote:
> JB> In the activestate ppm repository at:
>
> JB>         http://ppm4.activestate.com/idx/W3...WU.html
>
> JB> Win32::Printer is listed but it is not available for download.
> JB> The build logs show that there were fatal errors during the build
> JB> on 5.8 and 5.10.
>
> JB> If I simply want to send a plain text file to the default
> JB> printer what is recommended?
>
> JB> Thank you!


This was a thread on one of the AS lists a while back - I'm sure if you
search you'll find it there.

Win32::Printer from memory only works on 5.8 and above and ppm installs fine
on my DOS prompt:-

C:\Perl\Programs>ppm install Win32-Printer
Downloading ActiveState Package Repository packlist...done
Updating ActiveState Package Repository database...done
Downloading Kobes packlist...not modified
Downloading Win32-Printer-0.9...done
Unpacking Win32-Printer-0.9...done
Generating HTML for Win32-Printer-0.9...done
Updating files in site area...done
  10 files installed

C:\Perl\Programs>print /?
Prints a text file.

PRINT [/D:device] [[drive:][path]filename[...]]

   /D:device   Specifies a print device.

C:\Perl\Programs>

Hardly a recommendation since you'll have to call it as a system command,
but Window's native print command should do you just fine.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to