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