Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iPad/iPhone -- printing directly to a network printer without airprint popover

I've developing an iPad/iPhone application that requires that I print out a receipt on a network printer when I finish a transaction. I've managed to get airprint functionality working to some extent in that I can get the UIPrintInteractionController popover to appear appropriately, click the "Print" button and then view the results in the Printer Simulator. Because of the requirements of my application, I'm hoping to skip the popover step and automatically print the receipt when I close the transaction. In other words, is it possible to send a print job to a pre-specified network printer without having to add the extra button click? Do I need to try to extend the UIPrintInteractionController class? If so, has anyone had luck with this approach?

Any other alternate recommendations would be great as well.

like image 812
T. S. Avatar asked Feb 27 '11 20:02

T. S.


1 Answers

There is no way to do this using the UIPrintInteractionController class, it is designed to present the user with standard print options, and there is no app store safe way of getting around this.

like image 61
Tark Avatar answered Oct 27 '22 05:10

Tark