A PRN file is a file produced in a Microsoft DOS or Windows application when the option "Print to File" is used. Note that this isn't the same thing as using the normal print functionality with a "fake printer" like Adobe Acrobat or PDF Creator define. It's meant to be a printer ready dump that can be copied to a printer:
COPY myfile.prn LPT1
As you might guess from this syntax, this idea has been around for quite a long time (and only works on directly connected devices). One alternative I saw was to try in MS Windows to drag and drop a PRN file onto the printer icon. A quick Googling showed me a free tool that will let you print various kinds of files: PrintFile
None of this background information helps the OP, but you've already pointed to the use of Win32::OLE to automate the application needed to produce the PRN file. Even in Office 2007, you can use the Print to File option, it's just a matter of picking the right OLE print setting to specify it.
Oooh, another quick look gave me this: source file of Docserver which has a doc_convert function that looks just like what the doctor ordered.
Final Answer: get Docserver
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.