[comp.sys.mac.programmer] Two problems with printing

marty@june.cs.washington.edu (Marty Sirkin) (04/23/89)

I am currently having a problem with printing, and I hope that somebody on
the net has had a similar problem and knows what my problem is:

I have written a routine which is almost directly out of IM-2 for printing.
I call on a printing routine which gets a picture attached to a window, and
calls drawpicture to draw it on the printer.  The routine seemed to work fine
on both the Imagewriter and the laserwriter.  

I then added a large number of "moveto" and "lineto" commands to the picture
attached to a window.  It still prints just great on the Imagewriter, but
now it has trouble printing on the laserwriter.  I either get an "Illegal
instruction" message (on the PrCloseDocument), or it spools (I am using TOPS
- but it also failed without TOPS) and I get an error on spooling (-192).
If I take out the moveto and linto commands it prints just great!  Any ideas?

The other question is simpler.  I have routines which draw sine curves (or
close approximations of them.  I'd like to get the output to be a bit 
smoother on the printer (without having to resort to PostScript).  Does
anyone out there have any good suggestions?

Thanks for the help.

					Marty Sirkin
					marty@june.cs.washington.edu