A print job and FlexPrintJobScaleType.NONE : FlexPrintJob « Development « Flex






A print job and FlexPrintJobScaleType.NONE

A print job and FlexPrintJobScaleType.NONE
         
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Script>
    
    import mx.printing.*;
    private function doPrint():void {
      var printJob:FlexPrintJob = new FlexPrintJob();
      if (printJob.start() != true) 
          return;
      printJob.addObject(myDataGrid, FlexPrintJobScaleType.NONE);
      printJob.send();
    }
  </mx:Script>
  <mx:VBox id="myVBox">
    <mx:DataGrid id="myDataGrid" width="300">
      <mx:dataProvider>
        <mx:Object Product="A" Code="1000" />
        <mx:Object Product="B" Code="2000" />
        <mx:Object Product="C" Code="3000" />
      </mx:dataProvider>
    </mx:DataGrid>
    <mx:Button id="myButton" label="Print" click="doPrint();" />
  </mx:VBox>
</mx:Application>

   
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Print with FlexPrintJobPrint with FlexPrintJob
2.Print Job with FlexPrintJobPrint Job with FlexPrintJob
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