murarinayak / alivepdf

Automatically exported from code.google.com/p/alivepdf
0 stars 0 forks source link

Advance DataGrid with Grouping of Columns can not be shown in pdf. #273

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I generate a pdf containing dataGrid simple in flex it did work properly but 
when i want to add an advanceDataGrid with grouping of columns in PDF file, but 
it does not working properly. 

Original issue reported on code.google.com by usmanash...@gmail.com on 30 Aug 2010 at 5:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Hi,

The reason could be grouped data can not be converted to flat data.

The reason is GroupingCollection2 can not converted to Array which is essential 
for creating Grid.

The data provider of Advance DataGrid is "GroupingCollection2" whereas for 
Grid it is Array.

Please refer to the below link for the parameter required for creating Grid.
http://alivepdf.bytearray.org/alivepdf-asdoc/org/alivepdf/grid/Grid.html#dataPro
vider

Thanks,
Ravi

Original comment by ravichandran96@gmail.com on 28 May 2013 at 12:27

GoogleCodeExporter commented 8 years ago
// create a Grid object as usual
var grid:Grid = new Grid ( dp.toArray(), 200, 120, new RGBColor (0x666666), new 
RGBColor (0xCCCCCC), new RGBColor (0), true, new RGBColor ( 0x0 ), Joint.MITER 
);

// pass the grid
myPDF.addGrid(grid);

Original comment by ravichandran96@gmail.com on 28 May 2013 at 12:29