FlexReport For Printing In Adobe Flex
It doesn't matter where I go, I always run into people having printing issues with Flex. Most have found the FlexPrintJob class and samples on how to use it, but for those who print multiple pages the results are sometime less than stellar.FlexReport is released under the LGPL license and available at RIAForge. The API features include: Report Layout support, Multi-page content, and Print preview.
I just found a new open source project called FlexReport. It is said to address report layouts, multi-page reports and print preview.
You can checkout the demo application at: http://www.kemelyon.com/flexreport/. Also, you can read more on the project blog.
- Report layout: in order to print a page in Flex you need to create a container and add it to a FlexPrintJob. Not a big issue when working with static content. But when creating dynamic reports where you don’t know how many pages you’ll have this process can quickly become a nightmare.
- Multi-page content: The only component specifically designed for printing is PrintDataGrid. There’s no support for text or images.
- Print preview: as I said before organizations need printing. But a thing they don’t need is wasting paper. There’s no way to make a print-preview with PrintJob. And no one likes printing 100 pages of a table, just to realize they are printing the wrong data.
I would have liked to have seen the result of generating the PDF, but the site blew up when I clicked the PDF link.
But I did a print-to-PDF in OS X and the fonts are just are unclear - like bitmaps with blur filter on top. Oh, and it injected a blank page after each page of content...
Shouldn't this have been labelled pre-alpha? It seems way to early to be any use yet, unless it's just a bad demo.
FlexReport was made for printing, and whenever there was a choice between print quality and display quality, printing was preferred. That's the case with fonts. In flash, anti-aliased fonts have different metrics from aliased (and when printing you use aliased fonts), so in order to accurately preview you must use aliased fonts (blurry).
If you download the sources for use in your own project, you'll see a file named create.php which you must uncomment. Print-to-PDF is using alivePDF, take a look at www.alivepdf.org if you have any questions. This functionality is to be improved in the next version (it's just there now as a proof of concept).
If you find reproducible bugs please mail me a short description so they can be addressed in the next version.
Print Report in Flex