开发者

Printing Issue : Setting Paper feed

开发者 https://www.devze.com 2023-03-16 02:56 出处:网络
How to get the paper feed, to set it and to obtain 开发者_开发知识库the list of available paper feed on a printer ?

How to get the paper feed, to set it and to obtain 开发者_开发知识库the list of available paper feed on a printer ? I need to specify the paper tray number from which the paper has to be printed without  putting up the print dialog box in cocoa?

Any thoughts?


Though it is an old thread. There aren't may answers about this problem on the internet. I succeeded in making it work by setting the InputSlot key on the [printInfo printSettings] dictionary.

[[myPrintInfo printSettings] setObject:@"Tray5" forKey:@"InputSlot"]

It might or might not work for you as I don't know how printer dependent this setting is.

0

精彩评论

暂无评论...
验证码 换一张
取 消