Hi Phil,
you can always change the height of the PrintDataGrid and call nextPage(). Which should do the trick, but if your chart is taking up space on the second page make it zero or get it out of the way and only show the PDG. It's like any other component. So you'll have to put it in the place you want.
Probably you've used layout=absolute or a canvas, in which case you'll have to set the corrected x and y coordinates for the PDG.
Hope this helps,
-sam
On 8/14/06, phildouglas [EMAIL PROTECTED] wrote:
Does anyone know much about using the PrintDataGrid class withmultiple pages beyond whats included in the flex livedocs.I'm trying to print a graph with a table, and so need the chart at thetop of the first page, followed by the datagrid.
If the data is longer than one page then i need to flow it onto thenext page. This is working fine however when I hide the chart on thesecond page, the datagrid doesnt resize to fill the whole page, but
keeps the same height as if the chart was there, just at the top ofthe page. This means that if i have lots of data, i get lots of pagesall with small chunks of datagrid at the top.I've tried calling invalidate() and validateNow() on both the chart
and the containing page, and turned off includeInLayout for the chart,but this seems to make no difference. Am i missing something?Thanks.Phil
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development
Computer software development
Software design and development
Macromedia flex
Software development best practice
YAHOO! GROUPS LINKS
Visit your group "flexcoders" on the web.
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___