This is more of a Windows driver development question, and this freeware (found using google) might help you do what you want to do:

http://www.programurl.com/miraplacid-publisher-sdk.htm

Another solution which you could implement entirely is perl is to find a Windows print driver which communicates to the printer via the serial port. Then use the com0com driver to create a serial port bridge. The flow of data would be:

  1. User's PC
  2. connects to your printer via Windows Printer Sharing
  3. talks to the printer driver
  4. sends data through one end of the com-com bridge
  5. arrives at your perl program which has opened up the other end of the bridge
  6. which dumps the data to a file

(Rube Goldberg, EYHO.)

The com0com driver is pretty cool. You can also create com to tcp bridges which allows you to communicate with serial devices over the network.

Link to the com0com project: http://com0com.sourceforge.net/


In reply to Re: Virtual Printer by pc88mxer
in thread Virtual Printer by monkjeff

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.