Skip to main content
September 29, 2013
Question

print for android

  • September 29, 2013
  • 2 replies
  • 520 views

i have developed an application with flash CS6 for Android devices.

In this application i want to print a text in one portable printer whenever the user press one button.

i use

function pprescendprentfun(evt:MouseEvent)

{

          var printJob:PrintJob = new PrintJob();

   if (printJob.start()) {

      if (pprescprincontent_mc.width>printJob.pageWidth) {

         pprescprincontent_mc.width=printJob.pageWidth;

         pprescprincontent_mc.scaleY=pprescprincontent_mc.scaleX;

      }

      printJob.addPage(pprescprincontent_mc);

      printJob.send();

   }

 

}

but it doesnot work

does any body have solution????

This topic has been closed for replies.

2 replies

October 8, 2013

can i make print button save content as image then print it ? will it work well ?

Inspiring
September 30, 2013

sadly i think you may be out of luck using the PrintJob class on Android...

"The PrintJob class lets you create content and print it to one or more pages. This class lets you render content that is visible, dynamic or offscreen to the user, prompt users with a single Print dialog box, and print an unscaled document with proportions that map to the proportions of the content. This capability is especially useful for rendering and printing dynamic content, such as database content and dynamic text.


Mobile Browser Support: This class is not supported in mobile browsers."

EDIT: I spoke too soon, I think this may only apply to flash within the mobile browser. so i guess it should be ok for AIR

Well sorry to offer you nothing