Mailing Lists: Apple Mailing Lists

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

Question about PMSetPrintSettingsExtendedData



I am writing a PDE where the custom controls in the PDE pane h ve to be initialised by values sent from the main application.

The sample PDEproject seems not to illustrate exchange of data in this direction but only from the PDE to the main app.

I inserted the following code in DoPrint just before the call to PMSessionUseSheets
{
Boolean extendedData=true;
long lgnExtendedData=sizeof(extendedData);

err = PMSetPrintSettingsExtendedData( printSettings, 'PRDX', lgnExtendedData,
(void*)&extendedData );
}
                    if(!err){
                        err = PMSessionUseSheets(printSession, parentWindow, myPrintDialogDoneProc);
.......

PMSetPrintSettingsExtendedData returns noErr : everything seems OK on the app side.

In the PDE, the data is not found : PMTicketGetCFData returns kPMKeyNotFound.

I checked that the kMyAppPrintSettingsKey constant value is CFSTR("com.apple.print.PrintSettingsTicket.PRDX")

Thanks for any help.

Christian.

PS : I am using Tiger 10.4.3

 _______________________________________________
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.