[comp.lang.pascal] Printing from TPW

juvonen@colossus.hut.fi (Panu P Juvonen) (05/27/91)

We have recently begun to program in TPW, and haven't been able to
find almost any information about controlling printer and printing
from TPW. So far we have succeeded to get some text out, but
when we try to change any printer settings (i.e. copies, orientation, etc.)
from the program, only result we have managed to get is an UAE.

So if someone has already succeeded in printing from a TPW-program
and even controlling the printer, we would be very interested to see
how it exactly should happen. If you could send some fragments of code
to demonstrate this, we would be very grateful.



--
Panu Juvonen
juvonen@niksula.hut.fi

ebergman@isis.cs.du.edu (Eric Bergman-Terrell) (05/28/91)

Charles Petzold's "Programming Windows", MS Press contains detailed info.
on adding printer support to C language Windows programs.  Should be easy
to transliterate his examples to Pascal (I program in both C and Pascal).

Second best is MS Press' "Guide to Programming".

If you do advanced printing, the "Prog. Reference" from MS Press is recommended.

Terrell