[comp.sys.mac.programmer] How generate multi-sheet printing as MacDraw does?

bordier@imag.imag.fr (Jerome Bordier) (05/09/89)

Our application print pictures built with quickdraw on a single sheet.
We would like to print on several sheets as MacDraw does.

What is the programming technique? Does there exist a generic method?

Thank you in advance for your help (references, pieces of code, etc...).

P.S. Our application is developped with LightSpeed (THINK) C.


-- 
Jerome BORDIER   Laboratoire Structures Discretes  Institut IMAG
		 B.P. 53 X      38041 GRENOBLE Cedex   FRANCE
E.Mail:
INTERNET: bordier@imag.Fr       UUCP: bordier@imag (uunet.uu.net!imag!bordier)

kaufman@polya.Stanford.EDU (Marc T. Kaufman) (05/11/89)

In article <4875@imag.imag.fr> bordier@imag.imag.fr (Jerome Bordier) writes:
>Our application print pictures built with quickdraw on a single sheet.
>We would like to print on several sheets as MacDraw does.

>What is the programming technique? Does there exist a generic method?
>Thank you in advance for your help (references, pieces of code, etc...).

Note that PrOpenPage has as one parameter, the source rectangle to be printed.
By printing several pages, with different page rectangles for each, you can
get the tiling effect you want.

Marc Kaufman (kaufman@polya.stanford.edu)

jakob@nada.kth.se (Jakob Cederlund) (05/16/89)

A good place to find printing-code examples is MacApp. When I wrote a
text editor for the Mac I turned to the MacApp 1.1 sources to find out
how to do printing. (. Of course I didn't copy any code! .) The way to
get "tiling" has nothing to do with the args to PrOpenPage, but rather
with the area you print inside your printing loop.

/Jakob Cederlund
jakob@nada.kth.se