[comp.sys.mac.programmer] Print Manager Troubles

blostein@qucis.queensu.ca (Dorothea Blostein) (07/24/90)

I am posting this note for a co-worker.  Please reply by email and I will
forward the response to him.
    blostein@qucis.queensu.ca


              ***** URGENT Print Manager Problems *****

                   **** Problem 1: Job Names ****

The only way I have been able to set the job name is by using the hDocName
StringHandle in the print record, but tech note #149 says not to do this.

The recommended method for setting the job name doesn't work:
Tech Note #149 says that the job name is derived from the window name at the
time that PrValidate is called.  The job name I get is always "Unspecified".
I am using Appletalk with a Laserwriter and MultiFinder.
I have tried setting the window title and calling PrValidate 
    - before and after the PrOpen call,
    - before and after the PrJobDialog call, 
    - before and after the PrOpenDoc call,
with no luck at all.  Any ideas?


           **** Problem 2: Is this a PostScript Printer? ****

How do I determine if the printer can understand PostScript?
Sending both PostScript and QuickDraw results in excessive printing time;
by sending PostScript only I can cut the print time into less than half.

Tech note #72 says the the top byte of the wDev field in the print record
indicates what type of printer is out there.  The wDev field does not
get set properly most of the time:
    - occasionally it says "type 3" (which is correct)
    - more often it says "type 1" (incorrect)
I am using a Laserwriter on Appletalk.
I have tried checking wDev 
    - before and after PrOpen,
    - before and after PrValidate,
    - before and after PrJobDialog,
    - before and after PrOpenDoc,
and it never works properly.  Any suggestions?

Thanks for any help!