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 with
multiple pages beyond whats included in the flex livedocs.

I'm trying to print a graph with a table, and so need the chart at the
top of the first page, followed by the datagrid.

If the data is longer than one page then i need to flow it onto the
next page. This is working fine however when I hide the chart on the
second 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 of
the page. This means that if i have lots of data, i get lots of pages
all 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




__,_._,___

Reply via email to