Print Job with FlexPrintJob : 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 Job with FlexPrintJob
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
1.Print with FlexPrintJobPrint 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
ww__w___.___j___a__v_a_2__s.__com__ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.