Skip to main content
Participant
July 5, 2018
Question

Print page with Adobe AIR

  • July 5, 2018
  • 1 reply
  • 261 views

Hi!

What's the best way to print what an AIR application shows. I mean, imagine you purchase something and you want to offer the posibility to print like a "transaction completed page".

I've seen the way to print in AIR app is via PrintJob class but I don't know how to add the page to a Sprite object to use PrintJob.addPage().

Thanks in advance,

Ale

This topic has been closed for replies.

1 reply

Colin Holgate
Inspiring
July 5, 2018

A simpler solution would be to use a sharing ANE. Here's one example:

GoViral Facebook and Sharing Native Extension for Adobe AIR - ANEs by Milkman Games

With that you can create send bitmapdata to the system's sharing feature, and either email the image, post on Facebook, Twitter, etc, or send it to an AirPrint compatible printer.