Print with FlexPrintJob : FlexPrintJob « Development « Flex






Print with FlexPrintJob

Print with FlexPrintJob
         
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    layout="vertical" backgroundColor="white">
    <mx:Script>
        
            import mx.printing.*;
            public function printStuff():void
            {
                var printJob:FlexPrintJob = new FlexPrintJob();
                printJob.start();
                printJob.addObject(stuff);
                printJob.send();
            }
          
    </mx:Script>
    <mx:TextArea text="This is a test." id="stuff" />
    <mx:Button click="printStuff()" label="Print Stuff" />
</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Print Job with FlexPrintJobPrint Job with FlexPrintJob
2.A print job and FlexPrintJobScaleType.NONEA print job and FlexPrintJobScaleType.NONE
3.Print objects on separate pagesPrint objects on separate pages
4.Using ActionScript to create a temporary container to printUsing ActionScript to create a temporary container to print
5.MultiPage Print JobMultiPage Print Job