Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (print)
Viewing all articles
Browse latest Browse all 20

Print WebView via TCP

$
0
0

Hi All,

I've got a WebView that contains a basic html and css page.

I need to get this into either a ImageView or PDF ready to be printed.

If I dont need to convert it, then my hopes were to open a socket connection to port 9100 on the printer, and print straight to the printer.

However whenever I do something like

var page  = webview.getHtml();
socket.write( page );
it will print the HTML.

Anybody know how I could print the page correctly using on TCP not airprint?

Thanks


Viewing all articles
Browse latest Browse all 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>