Printing a Flex DataGrid of variable height
-
03-07-2019 - |
Question
I have a report I need to print from a Flex Project I have written. The report needs to look like this:
Header
-----------
text, more text
.----------------------------.
|Data Grid of Variable Height|
|============================|
| |
| |
|~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Possible Page Break
.~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
| |
| |
|____________________________|
Fixed height chart
Lots more text
End
I have spent about 16 hours trying to get this working. Every example I have found either has a PrintDataGrid a fixed height of 100% of its container, and then doing some really verbose code to span it to multiple pages. Has anyone gotten anything like this to work? I am considering just making a webservice that takes the data and spits it back in Html, but I would have to recreate the chart.
Solution
You can't. Don't even try and print in flex.
OTHER TIPS
I'm not sure what you mean by verbose, but check out the pseudocode and implementation at http://www.brucephillips.name/blog/index.cfm/2008/4/11/Flex--Printing-A-DataGrid-That-Spans-Multiple-Printed-Pages.
Hi cross a web site wich coul be interesting for this problem : Printing Multiple Pages using FlexReport
Hope it would help