I'm sorry you think it is lame.  The reason there is a PrintDataGrid is
because we know what the content will look like well enough to know how
to paginate it.  A VBox is much more general, and we haven't had the
time to figure out what the right API would be to allow you to control
page breaks.  Once you get this working, you may be able to help provide
some feedback as to what kinds of pagination control you and others
might need, or you will end up with a reusable component that others can
take advantage of.
 
The basic principle in the PrintDataGrid is to hide its scrollbars,
figure out how much it should display on the current page, fire off a
printed page, scroll some more data in and repeat until done.  You might
do something similar to your VBox, it would depend on what components
are in the VBox and how you want them to look.
 
One of the reasons I believe we haven't heard many requests for this is
that often, folks design their UI to have multiple screens using one of
our navigators like Accordion or TabNavigator which can often provide an
easier way for the user to view the report on-screen instead of having
to scroll through many pages.  Then printing is a matter of printing
each of those screens.
 
If your report has many lines of data, it would seem like you could
still use a PrintDataGrid.  Simply make an array of each line of data,
put it in the PDG with one column, hide the header and print it.
 
-Alex

________________________________

From: [email protected]
[mailto:[EMAIL PROTECTED] On Behalf Of dmiramontesval
Sent: Friday, December 08, 2006 1:15 PM
To: [email protected]
Subject: [flexcomponents] Re: Printig multipage output



I am printing a VBox which is a report, it contains information
concerning an accounting report.

I need to print this in multiple pages but there's no way to do it,
any ideas? any custom component which could handle multiple page format?

It is pretty lame that i can only print DataGrid in multiple pages

--- In [email protected]
<mailto:flexcomponents%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]>
wrote:
>
> Sorry, there is no other multipage print components available. What
are
> you printing? Pages of text should be relatively easy.
> 
> ________________________________
> 
> From: [email protected]
<mailto:flexcomponents%40yahoogroups.com> 
> [mailto:[email protected]
<mailto:flexcomponents%40yahoogroups.com> ] On Behalf Of dmiramontesval
> Sent: Friday, December 08, 2006 12:07 PM
> To: [email protected]
<mailto:flexcomponents%40yahoogroups.com> 
> Subject: [flexcomponents] Printig multipage output
> 
> 
> 
> I need to print a component which has a lot of information and which
> doesn't fit on a single page, so i need multiple pages to print it.
> Unfortunately Flex doesn't provide any support for this UNLESS you use
> PrintDataGrid, which is useless to me because the application i am
> trying to print doesn't have ANY PrintDataGrid control.
> 
> So the big question is how to handle multipage when printing something
> that IS NOT a PrintDataGrid.
> 
> Any ideas? any custom components that implement this functionality?
> any solution?
> 
> Thanks
>



 

Reply via email to