Hi all, upon discovering (to my horror) that Win32::Printer::Direct does not respect the configuration set in the Printers and Faxes dialogue (such as the source and output tray), I proceeded to look at using Win32::Printer do do the job.

The method that seems most promising is the Inject method, which appears to let you inject raw postscript data into the job. I would like to inject contents of the file I have so that it's data is the only thing that gets sent to the printer.

No matter what I have tried though, the page comes out blank.

Has anyone managed to use Win32::Printer to print a postscript file loaded from disk? I need to either specify the source and output tray, *or* have the current settings in the Printer and Faxes dialogue respected. I also don't want to have to share the printers as this would be politically incorrect where I work.

Examples would be very, *very* welcome.

Regards, Paul


In reply to Printing a postscript file with Win32::Printer by paul.dorman

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.