IJLUSTIG@pucc.Princeton.EDU (Irvin Lustig) (04/18/88)
I am writing an application that must do all printouts in landscape mode, no matter which printer is attached. When the user selects "Page Setup", I want the application to default to landscape printing. I would like to do this ***without testing the type of printer connected***. I did the following: Take the Print Record created by choosing Landscape in Page Setup when an Imagewriter is chosen, and save the contents in a resource. Then pass a handle that resource to PrValidate and use the modified result. This has the desired result for when an ImageWriter is selected, but when I pass the ImageWriter resource when the LaserWriter is chosen, PrValidate changes the resource to the default for the LaserWriter and doesn't realize that Landscape was chosen for the ImageWriter. So what I really want is for the Landscape option chosen for one printer to "carry over" to the other printer (and any others that might be out there). The only option seems to be saving a PrintRecord resource for an ImageWriter and a LaserWriter and passing the appropriate resource to PrValidate. My concern is if some other printer with a different driver comes along, then I have to create the proper resource for that printer. Any suggestions? -Irv Lustig Asst. Professor Department of Civil Engineering and Operations Research Princeton University Send e-mail to: irv%basie@princeton.edu