This is my first time to ask here since my question is not answering the adobe flex forum. At least, finally, I came to manage it here.
Well, Flex 4.5+, I think everyone is working now, so I asked this question since I have not found work with spark datagrid and mx printdatagrid components yet .
What I'm trying to achieve is to print all the data inside my spark datagrid. Therefore, when I do my research, we use the PrintJob or FlexPrintJob classes. It works fine, but when I need to print multiple pages, since the data on my spark datagrid is quite long, I cannot somehow find a way to do this. Print only up where the height of my spark data source. Therefore, in my research, they somehow managed to use the mx: PrintDataGrid component. But, unfortunately, they did this with mx: DataGrid. Now here is my problem - how to use mx: PrintDataGrid with s: DataGrid .
var printJob:PrintJob = new PrintJob(); if (printJob.start()) { var printGrid:PrintDataGrid = new PrintDataGrid(); printGrid.width = printJob.pageWidth; printGrid.height = printJob.pageHeight; printGrid.columns = mySparkDataGrid.columns;
So, please, can someone here help me with this? If it is not possible to convert the columns of the spark datagrid to the columns of mx datagrid, is there a way so that I can print all the data on the spark datagrid with multiple pages?
Thanks so much in advance .
-Ted
source share