[comp.sys.mac.programmer] How to print from LSP

cyosta@taux01.UUCP (Yossie Silverman) (07/04/88)

Can anyone offer a chunk of code (or psuedo code) to print a TE record on
any printer, handling of the Page Setup... and Print... commands?  I need
help on how to split the output up so that there are page skips after each
page, and possibly a header on each page as well.  I am printing streight
forward text and would like the printer to use draft mode if that was
selected in the Print... command.  I am programming in Pascal using the LSP
compiler.  I tried following the instructions in the book but the program
blows up on me, possibly because I am running it UNDER LSP which I have
noticed in the past has problems dealing with some managers (an imbedded
WDEF procedure would consistently blow LSP out of the water (but that is
another story)).

  As a side note, does anyone know how a PICT can have text with imbedded
linefeeds in it and draw it correctly while there are no QuickDraw calls
to allow the same (they all say that you are NOT allowed to use "charriage
control" characters in the text)?

Thanks much in advance.
-- 
Yossie Silverman                                   What did the Caspian sea?
National Semiconductor Ltd. (Israel)				- Saki
UUCP: taux01!yossie@nsc.UUCP
NSA LSD FBI KGB PCP CIA MOSAD NUCLEAR MI5 SPY ASSASSINATE SDI -- OOCLAY ITAY