Win32::Printer::Direct - Perl extension for direct Win32 printing


Win32-Printer documentation  | view source Contained in the Win32-Printer distribution.

Index


NAME

Top

Win32::Printer::Direct - Perl extension for direct Win32 printing

SYNOPSIS

Top

  use Win32::Printer::Direct;

  Printfile("HP LaserJet 8150", "test.prn");

ABSTRACT

Top

Win32 direct printing

INSTALLATION

Top

See Win32::Printer! This module depends on it.

Printfile

  Printfile($printer_name, $file_name);

$printer_name is printer's friendly name and $file_name is name of the file to print.

Return value is error code:

   1	Success
  -1	Memory allocation error
  -2	Error opening the file
  -3	Error opening the printer
  -4	Error startint the print job
  -5	Error writing to printer
  -6	Error ending the print job
  -7	Error closing printer

DESCRIPTION

Top

SEE ALSO

Top

Win32::Printer, Win32 Platform SDK GDI documentation.

AUTHOR

Top

Edgars Binans

COPYRIGHT AND LICENSE

Top


Win32-Printer documentation  | view source Contained in the Win32-Printer distribution.