Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!bu-cs!dartvax!eleazar.dartmouth.edu!earleh From: earleh@eleazar.dartmouth.edu (Earle R. Horton) Newsgroups: comp.sys.mac.programmer Subject: Re: Changing Imagewrite defaults Keywords: printing Message-ID: <16220@dartvax.Dartmouth.EDU> Date: 19 Oct 89 12:31:36 GMT References: <4933@tekig5.PEN.TEK.COM> Sender: news@dartvax.Dartmouth.EDU Reply-To: earleh@eleazar.dartmouth.edu (Earle R. Horton) Organization: Thayer School of Engineering Lines: 36 In article <4933@tekig5.PEN.TEK.COM> freda@tekig5.PEN.TEK.COM (Fred Azinger) writes: >I need help with changing the default "style" for printing on a >imagewriter. > >My application does alot of circle drawing which I would naturally >like to remain circles when printed...the laserwriter does this just >fine, however I ALWAYS need to set TALL ADJUSTED in the sytle dialog >in order for circles to come out correct on an Imagewriter! Since my >application depends on circles being circles I want TALL ADJUSTED to >be the default style when using an imagewriter. I know how to sense >if an imagewriter is the printer of choice, but cannot find the right >location to poke to set TALL ADJUSTED. Inside Mac is extreamly vague >on how to print and says squat on TALL ADJUSTED. Anyone been here >before??? It is unwise to try to poke fields in the print record. A safer technique is to print something using the style you want, and then save the print record you used as the default. Then, when you create a new print record, skip the PrintDefault, fill in the whole print record with your saved copy, then pass it to PrValidate. If PrValidate returns FALSE, then everything should be just fine. I am sceptical about your claim of being able to detect when an ImageWriter is installed. There are a lot of third party drivers out there, and it is just possible that one of them would look like an ImageWriter to your application. If you use the technique I suggest, and PrValidate returns TRUE, then it might be an indication that the printer is not an ImageWriter after all, and you might want to go for a PrintDefault setup. The Print Manager should allow users to determine what the default printing style should be. I sure hope they put this in the System 7.0 print architecture. Earle R. Horton