Hi all, I am using FlexReport such that I the report dataprovider has AdvancedDataGrid columngroups and an ArrayCollection. My Preview.mxml extends the SuperPanel ( http://www.wietseveenstra.nl/blog/2007/04/flex-superpanel-v15/ ).
I test the whole functionality in a separate test mx:Application, whose init() method creates a hardcoded ADG and a PreviewSuperPanel that is added to the application child list. Everything is working well. var da : ArrayCollection = new ArrayCollection([...]); var gcols: Array = new Array(); var groupCol1 : Array = new Array(); var groupHeader : AdvancedDataGridColumnGroup = new AdvancedDataGridColumnGroup(); groupHeader.headerText = ""; var newADGColumn : AdvancedDataGridColumn = new AdvancedDataGridColumn (); newADGColumn.dataField = "d"; newADGColumn.headerText = ""; newADGColumn.sortable = false; groupHeader.children.push(newADGColumn); gcols.push(groupHeader); // etc.. var source:DemoReportDP = new DemoReportDP(text, da, gcols); var report:DemoReportADG = new DemoReportADG(); doc = new Document(report, source, PaperFormat.A4); doc.pdfScript = "http://www.kemelyon.com/flexreport/create.php"; doc.pdfEnabled = true; var printPreview : PreviewSuperPanel = new PreviewSuperPanel(); printPreview.title = "Report Print View"; printPreview.width = 800; printPreview.height = 700; printPreview.x = this.createdWindows * 20; printPreview.y = this.createdWindows * 20; printPreview.showControls = true; addChild(printPreview); printPreview.doc = doc; In my real application, when I call Print, it is supposed to create report dataProvider, then it should show another child SuperPanel for my Preview object. The header containing the logo and the title is shown, the matrix with its headers, columns and rows are also correctly shown. The problem is that the data in the rows is not shown (no numbers and no text in the matrix). In org.print.ReportAdvancedDataGrid.mxml, the init() method is: this.groupedColumns = (this.parent.parent as Report).dataProvider.gcols; if(this.width > this.parent.parent.width) { this.width = this.parent.parent.width - 100; } this.validateNow(); which is exactly the same as in the Test version above. I would be very thankful if someone helps me around why the dataprovider elements are not printed.
-- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

