MultiPage Print Job : FlexPrintJob « Development « Flex






MultiPage Print Job

MultiPage Print Job
         
<?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(page1,"none");
            printJob.addObject(page2,"none");
            printJob.send();
          }
        }
  
  </mx:Script>
  <mx:Label id="page1" text="Hello World page 1" />
  <mx:Label id="page2" text="Hello World page 2" />
  <mx:Button click="print()" label="Print" />
</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.Print objects on separate pagesPrint objects on separate pages
5.Using ActionScript to create a temporary container to printUsing ActionScript to create a temporary container to print