Jeff-Lewis / alivepdf

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

DataGrid issue. #125

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. When adding the datagrid to the PDF using addGrid method if the number 
of rows is more than the current page size, the generated pdf is giving 
error.

My code:

            public function addGridData
(pdfDP:ArrayCollection,columns:Array):void
            {
myPDF=new PDF(Orientation.LANDSCAPE, Unit.MM, Size.TABLOID);
                myPDF.addPage();
                myPDF.textStyle(new RGBColor(0), 1);
                myPDF.setFont(FontFamily.ARIAL, 
Style.NORMAL, 5);
                var grid:Grid=new Grid(pdfDP.toArray
(), 1500, 1500, new RGBColor(0x666666), new RGBColor(0xCCCCCC), new 
RGBColor(0), true, new RGBColor(0x0), 1, Joint.ROUND);
                grid.columns=columns;       

                myPDF.addGrid(grid, 0, 5, false);
            }

What is the expected output? What do you see instead?

Multiple page PDF must be created when the datagrid rows are more.

What version of the product are you using? On what operating system?
1.4.8 
Windows XP

Please provide any additional information below.

Original issue reported on code.google.com by umarfaro...@gmail.com on 20 May 2009 at 12:12