Print Job with FlexPrintJob

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.printing.FlexPrintJob;
private function print():void {
var printJob:FlexPrintJob = new FlexPrintJob();
if(printJob.start()){
printJob.addObject(myLabel,"none");
printJob.send();
}
}
</mx:Script>
<mx:Label id="myLabel" text="Hello World" />
<mx:Button click="print()" label="Print" />
</mx:Application>
Related examples in the same category