Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing Duplex Key in print ticket



I am writing a PDE whose contents should differ for simplex and duplex
jobs. While I can usually get the value by getting the print ticket from
the print session, then getting the duplex value from the print ticket:

error = GetTicketRef(inPrintSession, kPDE_PMPrintSettingsRef,
&printSettingsTkt);
if (!error)
    error = PMTicketGetSInt32(printSettingsTkt, kPMTopLevel, kPMTopLevel,
kPMDuplexingKey, &duplexValue);

While GetSInt32 usually returns a 0, sometimes it returns -9589
(kPMKeyNotFound). Anyone know why the duplex key would be missing from the
print ticket, or (better yet) if it's not missing, how to get it?

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Printing mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/printing/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.