airprint - iOS Air print for UIwebview -


can 1 guide me how print contents of uiwebview,

for ex : - print doc,xls,ppt file uiwebview print contents.

please links or sample code solve problem

thanks in advance

uiprintinfo *pi = [uiprintinfo printinfo]; pi.outputtype = uiprintinfooutputgeneral; pi.jobname = webview.request.url.absolutestring; pi.orientation = uiprintinfoorientationportrait; pi.duplex = uiprintinfoduplexlongedge;  uiprintinteractioncontroller *pic = [uiprintinteractioncontroller sharedprintcontroller]; pic.printinfo = pi; pic.showspagerange = yes; pic.printformatter = webview.viewprintformatter; [pic presentanimated:yes completionhandler:^(uiprintinteractioncontroller *pic2, bool completed, nserror *error) {     // indicate done or error }]; 

a more extensive sample on apple's dev site.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

c# - SharpSVN - How to get the previous revision? -

php cli reading files and how to fix it? -