This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var printJob:FlexPrintJob = new FlexPrintJob(); | |
printJob.start(); | |
var lbl:Label; | |
for each(var item:Object in dataGrid.dataprovider.toArray()) | |
{ | |
lbl = new Label(); | |
lbl.text = item.descripcion; | |
printJob.addObject(lbl, FlexPrintJobScaleType.MATCH_WIDTH); | |
} | |
printJob.send(); |