I´m using a uiwebview for doing an embedded web app, with the new iOS 4.2 you can print directly with objective-C, but I want to print from javascript in HTML.
As far as I can tell, window.print() does nothing when running the code in a UIWebView. You need to write some native Objective-C to run UIViewPrintFormatter against your UIWebView, or send the user to Safari.