How do I print to a printer using Corona?

I need to print order confirmations from an iPad and am unable to find any code to allow me to do this.

Please help. [import]uid: 97768 topic_id: 34939 reply_id: 334939[/import]

I don’t think you can. I looked into this a couple months ago. I was gonna have to post the information to a server and have it printed from there. If anyone else has a solution I would love to hear it also.

Warren
[import]uid: 184193 topic_id: 34939 reply_id: 138868[/import]

Closest thing to a print solution I’ve seen was this suggestion (May 2012)… [import]uid: 41884 topic_id: 34939 reply_id: 138880[/import]

This is something that could be done with Enterprise and I would think this might be a good idea for a plugin once we get Project Gluon out.

[import]uid: 199310 topic_id: 34939 reply_id: 138927[/import]

OK, I found a way but it is not elegant. Corona supports sending e-mails. HP supports printing by receiving e-mails. Do you see where I’m going with this :slight_smile: I use native.showPopup(“mail”, options) where options = { to = {the email address of the printer}, subject = “testing the e-mailing”, isBodyHtml = true, body = “[html]this is a test[/html]” }

While it is very slow, it works. [import]uid: 97768 topic_id: 34939 reply_id: 139020[/import]

That’s a good idea! I will have to remember that one.

Warren
[import]uid: 184193 topic_id: 34939 reply_id: 139057[/import]

I don’t think you can. I looked into this a couple months ago. I was gonna have to post the information to a server and have it printed from there. If anyone else has a solution I would love to hear it also.

Warren
[import]uid: 184193 topic_id: 34939 reply_id: 138868[/import]

Closest thing to a print solution I’ve seen was this suggestion (May 2012)… [import]uid: 41884 topic_id: 34939 reply_id: 138880[/import]

This is something that could be done with Enterprise and I would think this might be a good idea for a plugin once we get Project Gluon out.

[import]uid: 199310 topic_id: 34939 reply_id: 138927[/import]

OK, I found a way but it is not elegant. Corona supports sending e-mails. HP supports printing by receiving e-mails. Do you see where I’m going with this :slight_smile: I use native.showPopup(“mail”, options) where options = { to = {the email address of the printer}, subject = “testing the e-mailing”, isBodyHtml = true, body = “[html]this is a test[/html]” }

While it is very slow, it works. [import]uid: 97768 topic_id: 34939 reply_id: 139020[/import]

That’s a good idea! I will have to remember that one.

Warren
[import]uid: 184193 topic_id: 34939 reply_id: 139057[/import]