Print objects on separate pages : FlexPrintJob « Development « Flex

Home
Flex
1.Chart
2.Components
3.Container
4.Data Model
5.Development
6.Effects
7.Event
8.Graphics
9.Grid
10.Style
Flex » Development » FlexPrintJobScreenshots 
Print objects on separate pages
Print objects on separate pages
         
<?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 some Stuff." id="stuff" />
    <mx:Button click="printStuff()" label="Print Stuff" />
</mx:Application>

   
    
    
    
    
    
    
    
    
  
Related examples in the same category
1.Print with FlexPrintJobPrint with FlexPrintJob
2.Print Job with FlexPrintJobPrint Job with FlexPrintJob
3.A print job and FlexPrintJobScaleType.NONEA print job and FlexPrintJobScaleType.NONE
4.Using ActionScript to create a temporary container to printUsing ActionScript to create a temporary container to print
5.MultiPage Print JobMultiPage Print Job
ww_w.___j__av_a___2___s__.__c___om___ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.