Mailing Lists: Apple Mailing Lists

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

Re: printing digest, Vol 1 #363 - 4 msgs



Gonzalo,


Error 1030 is the IPP error client-error-not-found (0x0406). Here's a
bit from RFC2911:


> 13.1.4.7 client-error-not-found (0x0406)
>
> The IPP object has not found anything matching the request URI. No
> indication is given of whether the condition is temporary or
> permanent. For example, a client with an old reference to a Job (a
> URI) tries to cancel the Job, however in the mean time the Job might
> have been completed and all record of it at the Printer has been
> deleted. This status code, 'client-error-not-found' is returned
> indicating that the referenced Job can not be found. This error
> status code is also used when a client supplies a URI as a reference
> to the document data in either a Print-URI or Send-URI operation,
> but
> the document can not be found.
>
> In practice, an IPP application should avoid a not found situation
> by
> first querying and presenting a list of valid Printer URIs and Job
> URIs to the end-user.


I'll guess that the printer id you are passing in is not valid. What's
the value of 'cfPrinterName'?

Rich

On Mar 9, 2004, at 10:02 PM, email@hidden wrote:

> Message: 2
> To: email@hidden
> From: Gonzalo Castro <email@hidden>
> Subject: PMPrinterGetDescriptionURL returns 1030
> Date: Tue, 9 Mar 2004 11:11:28 -0500
>
> Hello,
>
> PMPrinterGetDescriptionURL returns an undocumented (or at least
> illusive) status of
> 1030. Any idea what 1030 means?
>
> Curiously, if I remove a previous call in my code to
> PMSessionSetCurrentPrinter, I get
> no error from PMPrinterGetDescriptionURL.
>
> PMPrinter pmPrinter = nil;
> PMPrintSession printSession = nil;
> CFURLRef urlRef;
> CFStringRef cfPrinterName = (CFStringRef) nsPrinterName;
> // cfPrinterName is the name of a printer I have converted (cast) from
> an NSString.
>
> status = PMCreateSession(&printSession);
> status = PMSessionSetCurrentPrinter(printSession, cfPrinterName);
> status = PMSessionGetCurrentPrinter(printSession, &pmPrinter);
> status = PMPrinterGetDescriptionURL(pmPrinter, kPMPPDDescriptionType,
> &urlRef);
>
> As I said, if I take out the PMSessionSetCurrentPrinter line,
> PMPrinterGetDescriptionURL
> returns kPMNoError.
>
> Gonzalo

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
printing mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/printing
Do not post admin requests to the list. They will be ignored.




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.