[Tutor] Printer output

dman dman@dman.ddts.net
Mon, 13 May 2002 10:38:53 -0500


--LQksG6bCIzRHxTLp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, May 13, 2002 at 09:09:12AM -0500, Alan Trautman wrote:
| Thanks for the help. I should have been clearer in my question.
|=20
| I have a variable size collection of CSV tables of variable length. I want
| to parse these, do a bunch of simple calcs. These are the easy parts.

Ok.
=20
| Finally I need them to create printed reports (HP LaserJet's if it matter=
s)

The HP LJs I've used understand both plain text and PostScript.  If
you can generate either of those, then you can feed it into the
printer.  The plain text option is the easiest.  Another option is to
use some library such as ReportLab (for generating PDFs) to "paint"
your output on a "canvas" and have it generate the data to feed to the
printer.  You may need to do that to work with the windows printing
system.

| locally or across as Windows NT network.

Sorry, I can't help there.  My primary knowledge of windows printing
is that it is _not_ as simple as UNIX -- you can't simply open a pipe
to 'lp' and feed it the data.

| I am currently leaning to adding a simple web server and creating
| HTML but want to know if something like the

HTML is also rather easy to generate, and doesn't require a web server
at all.

| ostream command in C exhists at least for trouble shooting.

ostream is a C++ thing (it was 'printf' in C), and yes, python has a
"print" statement that does the same thing.

| The ideal if I could find some docs/example is an XML based system
| using different style sheets for the different views but don't know
| much about either of these techniques.

I haven't used XML for that, I don't know how that would be done.

The simplest technique is to simply generate plain text.  It isn't
fancy, but it is functional and easiest to generate and test.

HTH,
-D

--=20

The heart is deceitful above all things
    and beyond cure.
    Who can understand it?

I the Lord search the heart
    and examine the mind,
to reward a man according to his conduct,
    according to what his deeds deserve.

        Jeremiah 17:9-10
=20
GnuPG key : http://dman.ddts.net/~dman/public_key.gpg


--LQksG6bCIzRHxTLp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjzf3g0ACgkQO8l8XBKTpRTj0wCfWVZB0Gk3GbehrfYVavglVQ7B
E7kAn39y35Wu5wk4LHXO8c51+Y2hv5kq
=mSPw
-----END PGP SIGNATURE-----

--LQksG6bCIzRHxTLp--