Wednesday, September 1, 2010

Print function In Flex 3.0

<mx:Script>
<![CDATA[
   import mx.printing.FlexPrintJob;
private function doPrint():void {
     var printJob:FlexPrintJob = new FlexPrintJob();
       if (printJob.start()) {
                printJob.addObject(this);
        printJob.send();
     }
    
    
    
]]>
</mx:Script>


<mx:Panel title="Flex Tutorial - Print"
     width="500" height="500"
     horizontalCenter="0" verticalCenter="0"
     horizontalAlign="center" verticalAlign="middle">


       


<mx:Button label="Print" click="doPrint()" x="133" y="607"/>


SCREEN SHOT & DEMO HERE



No comments:

Post a Comment