Created
April 24, 2013 03:56
Imprimir elementos de un dataGrid
This file contains 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(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Debuguea y detente en la linea 8 Revisa si printJob tiene algo o es nulo.