Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: Win32 Printing

by bkiahg (Pilgrim)
on Nov 02, 2004 at 23:21 UTC ( [id://404779]=note: print w/replies, xml ) Need Help??


in reply to Re: Win32 Printing
in thread Win32 Printing

That does sound challenging. I have some experience with win32::guitest and it would definitely be a challenge. Would changing them to a pdf make things easier?

Replies are listed 'Best First'.
Re^3: Win32 Printing
by BrowserUk (Patriarch) on Nov 02, 2004 at 23:45 UTC

    Either way, you are faced with the same problem if you want to format and then print. You either:

    1. Use an existing application that knows how to format the data format the file is in, and drive that from Perl.

      Which is the Win32::GUI or Win32::OLE method.

    2. Try to render the formatting yourself.

      This is by far the harder task. Even with years, and hundreds or even thousands of man hours behind them, both browsers and Adobe's reader still don't always make a great job of printing their formats. Doing it your self is extremely hard in the case of html, and both extremely hard and possibly illegal in the case of PDF.

    If your very unfussy about the way the output is rendered you might get away with using something like the linx text browser to render the html or ghostscript for the PDF, but neither is very satisfactory.

    I'm not sure, but I seem to remember that at least one of the popular browsers had a command line switch that would cause it to render the url supplied, print to the default printer and then exit--but I don't recall where I got that notion from?


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "Think for yourself!" - Abigail
    "Memory, processor, disk in that order on the hardware side. Algorithm, algorithm, algorithm on the code side." - tachyon
      Ya it needs to be somewhat formatted. In a table atleast. I'm going to keep digging into win32::printer and see what formatting options I can come up with. Guitest and OLE seem like more trouble than I am trying to overcome. Thank you for your input.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://404779]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2024-04-25 09:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found